|
|
@ -92,6 +92,7 @@ make_window_and_test(int (*callback)(HDC hdc)) |
|
|
|
HWND hwnd; |
|
|
|
HWND hwnd; |
|
|
|
HINSTANCE hcurrentinst = NULL; |
|
|
|
HINSTANCE hcurrentinst = NULL; |
|
|
|
WNDCLASS window_class; |
|
|
|
WNDCLASS window_class; |
|
|
|
|
|
|
|
MSG msg; |
|
|
|
|
|
|
|
|
|
|
|
test_callback = callback; |
|
|
|
test_callback = callback; |
|
|
|
|
|
|
|
|
|
|
@ -120,7 +121,6 @@ make_window_and_test(int (*callback)(HDC hdc)) |
|
|
|
ShowWindow(hwnd, SW_SHOWDEFAULT); |
|
|
|
ShowWindow(hwnd, SW_SHOWDEFAULT); |
|
|
|
UpdateWindow(hwnd); |
|
|
|
UpdateWindow(hwnd); |
|
|
|
|
|
|
|
|
|
|
|
MSG msg; |
|
|
|
|
|
|
|
while (GetMessage(&msg, NULL, 0, 0)) { |
|
|
|
while (GetMessage(&msg, NULL, 0, 0)) { |
|
|
|
TranslateMessage(&msg); |
|
|
|
TranslateMessage(&msg); |
|
|
|
DispatchMessage(&msg); |
|
|
|
DispatchMessage(&msg); |
|
|
|