MCPcopy Create free account
hub / github.com/diasurgical/devilution / MainWndProc

Function MainWndProc

Source/init.cpp:117–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117LRESULT MainWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
118{
119 switch (Msg) {
120 case WM_ERASEBKGND:
121 return 0;
122 case WM_PAINT:
123 force_redraw = 255;
124 break;
125 case WM_CLOSE:
126 return 0;
127 case WM_QUERYNEWPALETTE:
128 return 1;
129 case WM_QUERYENDSESSION:
130 exit(0);
131 }
132
133 return 0;
134}
135
136WNDPROC SetWindowProc(WNDPROC NewProc)
137{

Callers 2

DisableInputWndProcFunction · 0.85
GM_GameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected