here's a piece of window procedure. What does DefWindowProc do in this program.
LRESULT CALLBACK WndProcedure(HWND hWnd, UINT Msg,
WPARAM wParam, LPARAM lParam)
{
switch(Msg)
{
case WM_DESTROY:
// user wants to exit
PostQuitMessage(WM_QUIT);
break;
default:
// Hand off unprocessed messages to DefWindowProc
return [B]DefWindowProc(hWnd, Msg, wParam, lParam)[/B];
}
return 0;
}