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

Вниз

Активная форма и мигание =)   Найти похожие ветки 

 
Iraizor ©   (2004-04-20 10:53) [0]

Мастера, подскажите пожалыста, как можно узнать активна ли моя форма и если она не активна сделать ее "полоску" (если можно так выразится) на панели задач мигающей


 
Игорь Шевченко ©   (2004-04-20 11:01) [1]


> как можно узнать активна ли моя форма

if GetForegroundWindow = MyForm.Handle then
 активна


> сделать ее "полоску" (если можно так выразится) на панели
> задач мигающей

FlashWindow(Ex)


 
IraiZor ©   (2004-04-20 11:23) [2]

Игорь Шевченко
Cпасибо , сейчас попробую


 
IraiZor ©   (2004-04-20 11:46) [3]

Сделал мигание ,но как можно отследить , когда форма была сделана вновь активной ?


 
SammIk ©   (2004-04-20 11:50) [4]

The WM_ACTIVATE message is sent to both the window being activated and the window being deactivated. If the windows use the same input queue, the message is sent synchronously, first to the window procedure of the top-level window being deactivated, then to the window procedure of the top-level window being activated. If the windows use different input queues, the message is sent asynchronously, so the window is activated immediately.
Parameters
wParam
The low-order word specifies whether the window is being activated or deactivated. This parameter can be one of the following values. Value Meaning
WA_ACTIVE Activated by some method other than a mouse click (for example, by a call to the SetActiveWindow function or by use of the keyboard interface to select the window).
WA_CLICKACTIVE Activated by a mouse click.
WA_INACTIVE Deactivated.

The high-order word specifies the minimized state of the window being activated or deactivated. A nonzero value indicates the window is minimized.

lParam
Handle to the window being activated or deactivated, depending on the value of the wParam parameter. If the low-order word of wParam is WA_INACTIVE, lParam is the handle to the window being activated. If the low-order word of wParam is WA_ACTIVE or WA_CLICKACTIVE, lParam is the handle to the window being deactivated. This handle can be NULL.


 
IraiZor ©   (2004-04-20 12:42) [5]

Все ! спасибо ! теперь все работает !



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

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

Наверх





Память: 0.45 MB
Время: 0.033 c
6-1081499243
Srg
2004-04-09 12:27
2004.05.30
TMemoryStream & TidTCPServer


6-1081684143
iraizor
2004-04-11 15:49
2004.05.30
Чат в Интернете на сокетах


3-1084186103
Mishenka
2004-05-10 14:48
2004.05.30
Есть ли стандартные диалоги для поиска в Базах данных?


1-1084436594
Inner
2004-05-13 12:23
2004.05.30
Срочно TTreeView подскажите!


14-1084255098
ССЗБ
2004-05-11 09:58
2004.05.30
Заметил одну деталь - может, неправ?





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский