This line is missing
Also, your WndProc function is not proper.Code:wndclass.lpfnWndProc = WndProc;
It should have a switch statement to check the message parameter
Code:switch (message) { case WM_PAINT: hdc = BeginPaint (hwnd, &ps); GetClientRect (hwnd, &rect); EndPaint(hwnd, &ps); break; default: return DefWindowProc (hwnd, message, wparam, lparam); }




Reply With Quote