А, так это не просто окно, это
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.
|
То есть, если просто вернуть ТРУ, то стандартный обработчик не вызовется.