LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_CREATE: return WMCreate (hwnd, wParam, lParam); case WM_SIZE: return WMSize (hwnd, wParam, lParam); case WM_LBUTTONDOWN: return WMLButtonDown (hwnd, wParam, lParam); case WM_DESTROY: return WMDestroy (hwnd, wParam, lParam); } return DefWindowProc (hwnd, message, wParam, lParam); }
LONG APIENTRY GenericWndProc (HWND hWnd, UINT message, UINT wParam, LONG lParam) // GenericWndProc // // WndProc for generic window { switch (message) { case WM_CREATE: return WMCreate(hWnd, (LPCREATESTRUCT)lParam); default: return DefWindowProc(hWnd, message, wParam, lParam); } }
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_CREATE: return WMCreate (hwnd, wParam, lParam); case WM_SETFOCUS: return WMSetFocus (hwnd, wParam, lParam); case WM_SIZE: return WMSize (hwnd, wParam, lParam); case WM_COMMAND: return WMCommand (hwnd, wParam, lParam); case WM_DESTROY: return WMDestroy (hwnd, wParam, lParam); } return DefWindowProc (hwnd, message, wParam, lParam); }