Главная страница
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.055 c
14-1084457766
Delphi5.01
2004-05-13 18:16
2004.05.30
Gde mojno kupit pochtovik Administrator@MyFirm.com


3-1083780956
TrOnIc
2004-05-05 22:15
2004.05.30
Подсчет .T. и . F. в таблице


8-1079595546
Ziko
2004-03-18 10:39
2004.05.30
Рисование штриховых и пунктирных линий GDI толщиной > 1


3-1083924108
WondeRu
2004-05-07 14:01
2004.05.30
Помогите написать SQL-запрос


3-1083730588
Kate
2004-05-05 08:16
2004.05.30
Можно ли соединить записи из двух баз данных в одну?