/* MainMsg.c * * Process Window Messages on our Main Window * */ #define STRICT #include LRESULT CALLBACK MainWndProc ( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ) { switch( message ) { case WM_DESTROY: PostQuitMessage( 0 ); break; default: return( DefWindowProc( hWnd, message, wParam, lParam ) ); } return NULL; }