Вниз
Скачать: CL | DM;

Какое событие происходит когда моя форма перестает быть активной?   Найти похожие ветки 

 
Seroga   (2002-03-29 20:39) [0]

Т.е.если моя форма,например,минимизируется,или переключаются задачи,или активизируется другая прога?


 
Dimaond Cat ©   (2002-03-29 23:46) [1]

события ты сам и описал,если интересует какие сообщения получает твоя прога, то это другой вопрос на всякий случай вот овет
при потере фокуса твоя программа получает сообщение wm_killfocus при минимизации wm_command с одним из параметров (не помню точно) sc_minimize


 
copyr25 ©   (2002-03-30 08:36) [2]

Да. SC_MINIMIZE:
A window receives this message when the user chooses a command from the window menu (also known as the System menu or Control menu) or when the user chooses the Maximize button or Minimize button.

WM_SYSCOMMAND
uCmdType = wParam; // type of system command requested
xPos = LOWORD(lParam); // horizontal postion, in screen coordinates
yPos = HIWORD(lParam); // vertical postion, in screen coordinates


Parameters

uCmdType

Specifies the type of system command requested. This can be one of these values:

Value Meaning
SC_CLOSE Closes the window.
SC_CONTEXTHELP Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.
SC_DEFAULT Selects the default item; the user double-clicked the window menu.
SC_HOTKEY Activates the window associated with the application-specified hot key. The low-order word of lParam identifies the window to activate.
SC_HSCROLL Scrolls horizontally.
SC_KEYMENU Retrieves the window menu as a result of a keystroke.
SC_MAXIMIZE (or SC_ZOOM) Maximizes the window.
SC_MINIMIZE (or SC_ICON) Minimizes the window.
SC_MONITORPOWER Windows 95 only: Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer.
SC_MOUSEMENU Retrieves the window menu as a result of a mouse click.
SC_MOVE Moves the window.
SC_NEXTWINDOW Moves to the next window.
SC_PREVWINDOW Moves to the previous window.
SC_RESTORE Restores the window to its normal position and size.
SC_SCREENSAVE Executes the screen saver application specified in the [boot] section of the SYSTEM.INI file.
SC_SIZE Sizes the window.
SC_TASKLIST Executes or activates Windows Task Manager.
SC_VSCROLL Scrolls vertically.


xPos

Specifies the horizontal position of the cursor, in screen coordinates, if a window menu command is chosen with the mouse. Otherwise, the xPos parameter is not used.

yPos

Specifies the vertical position of the cursor, in screen coordinates, if a window menu command is chosen with the mouse. This parameter is -1 if the command is chosen using a system accelerator, or zero if using a mnenomic.



Return Values

An application should return zero if it processes this message.



 
copyr25 ©   (2002-03-30 08:40) [3]

или переключаются задачи: Тогда SC_NEXTWINDOW


 
-----   (2002-04-01 17:16) [4]

Удалено модератором


 
Dimaond Cat ©   (2002-04-01 22:48) [5]

2 copyr25 © мда , а дать ссылочку что мол посмотри хелп это слишком просто , надо кучу текста выложить :о)


 
Seroga   (2002-04-04 22:09) [6]

2 Dimaond Cat ©
Если было бы слишком сложно,то никто бы и не ответил :)



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.008 c
1-17991
stupid
2002-05-23 19:40
2002.06.06
Как избавится от некрасивой прорисовки формы?


1-18052
indigo
2002-05-24 21:31
2002.06.06
label


1-17972
Yanval
2002-05-28 14:24
2002.06.06
открытие файла с помощью моей программы


3-17797
galilee
2002-05-15 23:51
2002.06.06
image data type в MS SQL


1-18037
roman_tutov@mail.ru
2002-05-24 12:21
2002.06.06
Как отловить что окно свернутое ?




   Наверх