diff src/w32fns.c @ 78907:90bd4f87874a

(globals_of_w32fns): Init common controls.
author Jason Rumney <jasonr@gnu.org>
date Thu, 27 Sep 2007 22:09:58 +0000
parents 922696f363b0
children dcfd2d0c6c47 5039706521c9
line wrap: on
line diff
--- a/src/w32fns.c	Thu Sep 27 22:09:21 2007 +0000
+++ b/src/w32fns.c	Thu Sep 27 22:09:58 2007 +0000
@@ -48,6 +48,7 @@
 
 #include "bitmaps/gray.xbm"
 
+#include <commctrl.h>
 #include <commdlg.h>
 #include <shellapi.h>
 #include <ctype.h>
@@ -9073,6 +9074,9 @@
 	      &w32_ansi_code_page,
 	      doc: /* The ANSI code page used by the system.  */);
   w32_ansi_code_page = GetACP ();
+
+  /* MessageBox does not work without this when linked to comctl32.dll 6.0.  */
+  InitCommonControls ();
 }
 
 #undef abort