Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.06.06;
Скачать: 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 вся ветка

Текущий архив: 2002.06.06;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.009 c
14-18112
Феликс
2002-04-26 22:18
2002.06.06
Черный квадрат тчк. Поспорим тчк.


1-17943
Z-man
2002-05-27 06:38
2002.06.06
Определить скорость


7-18169
Keymaster
2002-03-12 00:05
2002.06.06
Может не совсем в тему, но очень нужно


1-18010
Dino
2002-05-23 15:49
2002.06.06
Как сделать...


14-18106
Yuraz
2002-04-29 15:49
2002.06.06
Пропала кнопка