Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2002.06.06;
Скачать: [xml.tar.bz2];

Вниз

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

 
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 вся ветка

Форум: "WinAPI";
Текущий архив: 2002.06.06;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.133 c
7-18167
dim-
2002-03-13 12:55
2002.06.06
Перезагрузить компьютер


1-17882
MasterA
2002-05-27 09:45
2002.06.06
Экспорт в EXCEL


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


1-17980
Johnny Smith
2002-05-23 18:32
2002.06.06
Карта наследования (ссылка)


6-18090
Зинец Виктор
2002-03-26 15:16
2002.06.06
Вопрос про Mailslot





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский