From 60860eb36d45e00509fd97c167ee4e9fbb5b7ac6 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 27 Sep 2007 22:10:53 +0000 Subject: [PATCH] (globals_of_w32fns): Init common controls. --- src/ChangeLog | 6 ++++++ src/w32fns.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 3875f081c8b..cbba8f5d3d5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2007-09-27 Jason Rumney + + * makefile.w32-in (LIBS): Add COMCTL32. + + * w32fns.c (globals_of_w32fns): Init common controls. + 2007-09-21 Richard Stallman * image.c (our_memory_buffer): Renamed from omfib_buffer. diff --git a/src/w32fns.c b/src/w32fns.c index be3570231dc..d260b0d9be9 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -48,6 +48,7 @@ Boston, MA 02110-1301, USA. */ #include "bitmaps/gray.xbm" +#include #include #include #include @@ -9073,6 +9074,9 @@ void globals_of_w32fns () &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 -- 2.39.2