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

Вниз

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

 
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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.039 c
3-1084134130
Piter
2004-05-10 00:22
2004.05.30
DISTINCT?


9-1075218805
Night Flame
2004-01-27 18:53
2004.05.30
Игра "Пять крестов"


3-1084266514
Shura
2004-05-11 13:08
2004.05.30
ADOConnection. Не закрывается соединение с базой данных.


14-1084036275
DillerXX
2004-05-08 21:11
2004.05.30
Колобот


14-1084433607
syte_ser78
2004-05-13 11:33
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
Английский Французский Немецкий Итальянский Португальский Русский Испанский