MCPcopy Create free account
hub / github.com/WheretIB/nullc / WindowProc

Function WindowProc

NULLC/includes/window.cpp:99–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 LRESULT CALLBACK WindowProc(HWND hWnd, unsigned int message, WPARAM wParam, LPARAM lParam)
100 {
101 switch(message)
102 {
103 case WM_CREATE:
104 break;
105 case WM_PAINT:
106 OnPaint(hWnd);
107 break;
108 default:
109 return DefWindowProc(hWnd, message, wParam, lParam);
110 }
111 return 0;
112 }
113
114 void RegisterClass(const char *className, HINSTANCE hInstance)
115 {

Callers

nothing calls this directly

Calls 1

OnPaintFunction · 0.70

Tested by

no test coverage detected