ui/win32/toolkit.c

changeset 816
f5690594b240
parent 813
6d9066951cdb
child 817
d09817e6e6a4
--- a/ui/win32/toolkit.c	Wed Oct 08 12:36:16 2025 +0200
+++ b/ui/win32/toolkit.c	Wed Oct 08 15:42:23 2025 +0200
@@ -41,6 +41,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <commctrl.h>
+
 static const char *application_name;
 
 static ui_callback   startup_func;
@@ -59,6 +61,11 @@
     uic_load_app_properties();
 
     ui_window_init();
+
+    INITCOMMONCONTROLSEX icex = { sizeof(icex), ICC_WIN95_CLASSES };
+    InitCommonControlsEx(&icex);
+
+    SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
 }
 
 const char* ui_appname() {

mercurial