Главная страница
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.012 c
1-17923
tsarevep
2002-05-27 12:11
2002.06.06
WinXp


1-18058
roman001
2002-05-25 13:05
2002.06.06
ToolBar


1-17868
PC_DOS
2002-05-26 16:25
2002.06.06
ПОМОГИТЕ!!! СРОЧНО НУЖЕН ИСХОДНИК TColorGridBox или похожий


1-17847
Yuraz
2002-05-23 15:50
2002.06.06
Вопрос по INI файлам, как записать и считать Memo1.Text


3-17804
Aleksandr
2002-05-16 11:23
2002.06.06
Как создаваемой программно таблице Парадокс назначить версию?