Показать сообщение отдельно
  #6  
Старый 27.04.2017, 15:59
Аватар для Bargest
Bargest Bargest вне форума
Профессионал
 
Регистрация: 19.10.2010
Адрес: Москва
Сообщения: 2,390
Версия Delphi: XE3/VS12/FASM
Репутация: 14665
По умолчанию

А, так это не просто окно, это DialogBox. Не заметил сразу.
Цитата:
Сообщение от MSDN
Remarks

You should use the dialog box procedure only if you use the dialog box class for the dialog box. This is the default class and is used when no explicit class is specified in the dialog box template. Although the dialog box procedure is similar to a window procedure, it must not call the DefWindowProc function to process unwanted messages. Unwanted messages are processed internally by the dialog box window procedure.
Т.е. судя по МСДН, диалогбоксы сами всегда вызывают DefDlgProc.
Цитата:
Сообщение от MSDN
Typically, the dialog box procedure should return TRUE if it processed the message, and FALSE if it did not. If the dialog box procedure returns FALSE, the dialog manager performs the default dialog operation in response to the message.
То есть, если просто вернуть ТРУ, то стандартный обработчик не вызовется.
__________________
jmp $ ; Happy End!
The Cake Is A Lie.
Ответить с цитированием