From 6cab1f4839127b36b98f4af3173c9588ead12fe5 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 2 Apr 2005 19:16:36 +0000 Subject: Attempt to fix the missing multimonitor support in VisualC6. Well, it does compile, link and run now, but since I have only a single monitor, I can't test this. Could someone please verify this fix. Also, it may be useful to add '#if _MSC_VER<0x0600' or something like that. Feedback please! Thanks! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/screen_xywh.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index c967394fe..dd4b8ff5f 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -34,7 +34,13 @@ // Number of screens... static int num_screens = 0; -#ifdef WIN32 +#ifdef WIN32 + +#if !defined(HMONITOR_DECLARED) && (_WIN32_WINNT < 0x0500) +#define COMPILE_MULTIMON_STUBS +#include +#endif + static RECT screens[16]; static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT, LPARAM) { -- cgit v1.2.3