B
Hi,
MessageBox bringt seine WndProc schon von Haus aus mit.
In der MSDN steht:
http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/DialogBoxes/DialogBoxReference/DialogBoxFunctions/MessageBox.asp?frame=true
The MessageBox function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons.
Das "operates" ist dabei der entscheidene Teil. MessageBox bringt seine WndProc schon von Haus aus mit. Ist in den Link-Files zur Windows-API realisiert.
W*****einlich springt die diese auch nur direkt in die DefWindowProc.
long FAR PASCAL WndProc( HWND hwnd, UINT msg,
UINT wParam, LONG lParam )
{
return( DefWindowProc( hwnd, msg, wParam, lParam ) ) );
}
Bryan