Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.05.30;
Скачать: CL | DM;

Вниз

Как отменить все сообщения, посылаемые окну?   Найти похожие ветки 

 
bon ©   (2004-05-12 15:21) [0]

Собственно сабж.


 
Семен Сорокин ©   (2004-05-12 15:24) [1]

может быть проще подменить его WindowsProc, где ничего не обрабатывать :)


 
Рамиль ©   (2004-05-12 15:29) [2]

Все сообщения? А вы уверены, что вам нужно такое окно?


 
Digitman ©   (2004-05-12 15:34) [3]


> Как отменить


никак

сообщения, поставленные в очередь сообщений код.потока, остаются там вплоть до выборки их код.потоком либо терминирования этого код.потока

др.вопрос, что код.поток не обязан выбирать (равно как и обрабатывать выбранные тем или иным образом) сообщения из очереди адресованных ему и созданным им окнам


 
malkolinge ©   (2004-05-12 18:29) [4]

Application.OnMessage +F1 :=
property OnMessage: TMessageEvent;

Description

Use OnMessage to trap any or all Windows messages posted to all windows in the application. The OnMessage event occurs when an application receives a Windows message. An OnMessage event handler allows an application to respond to messages other than those declared in the events for TApplication. If the application doesn"t have a specific handler for an incoming message, the message is dispatched to the window for which it was intended, and Windows handles the message.

The TMessageEvent type is the type of the OnMessage event. The Msg parameter identifies the Windows message, and the Handled parameter indicates whether the event handler responded to the message. Set Handled to True if the message has been completely handled, to prevent subsequent processing of the message.

Note: OnMessage only receives messages that are posted to the message queue, not those sent directly with the Windows API SendMessage function.

Caution: Thousands of messages per second flow though this event. Be careful when coding the handler, because it can affect the performance of the entire application.» Игорь Шевченко:» Это не поможет. Таким образом можно игнорировать сообщения от клавиатуры и мыши


 
Gero ©   (2004-05-12 18:54) [5]

Вероятно автор не представляет, что это будет.


 
Тимохов ©   (2004-05-12 18:59) [6]


> Вероятно автор не представляет, что это будет.

сомневаюсь, что это вообще кто-то представляет, т.к. я что-то не припомню такого, чтобы можно было отменить все сообщения - имхо можно их игнорировать.


 
Xaker ©   (2004-05-13 13:47) [7]

Удалено модератором
Примечание: Offtopic


 
Armen   (2004-05-14 14:10) [8]

Если только надо игнорировать сообщения от клавиатуры и мыши, то
EnableWindow()



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

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

Наверх




Память: 0.48 MB
Время: 0.052 c
14-1084520263
Vlad Oshin
2004-05-14 11:37
2004.05.30
Что будет быстрее: сравнить две строки[255] или взять к.л.


1-1084783750
OlegM
2004-05-17 12:49
2004.05.30
Идиотский вопрос но есть application.Minimize; а обратная функция


4-1082457137
Alexandr_N
2004-04-20 14:32
2004.05.30
Время


14-1084453393
proteste
2004-05-13 17:03
2004.05.30
Кто такой ламер.


7-1082619506
Pontic
2004-04-22 11:38
2004.05.30
Блокировка управления