From 6df175bd31768f1c594336a945a49179de87f015 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Wed, 4 Jan 2017 23:50:59 -0500 Subject: [PATCH] GDI paint test --- gfx/common/win32_common.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index 05beed2ea6..8337d1f179 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -521,6 +521,12 @@ LRESULT CALLBACK WndProcGDI(HWND hwnd, UINT message, switch (message) { + case WM_PAINT: + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hwnd, &ps); + TextOut(hdc, 0, 0, "Hello, Windows!", 15); + EndPaint(hwnd, &ps); + break; case WM_DROPFILES: case WM_SYSCOMMAND: case WM_CHAR: