Вниз
Скачать: 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.011 c
1-17848
Alexey-neo
2002-05-25 22:56
2002.06.06
Промблема с TDateTimePicker


1-17934
cardinal
2002-05-27 18:20
2002.06.06
Компоненты Delphi


14-18126
Dimaiv
2002-05-01 15:58
2002.06.06
Для курсовой нужна хвалебная речь о Delphi cтраницы на 2-3


3-17778
Dimaiv
2002-05-15 08:08
2002.06.06
Поиск для русских слов учитывает регистр, а для английских нет


3-17783
veronika
2002-05-14 16:09
2002.06.06
adoTable1.updatebatch




   Наверх