Remove MONITOR-related declarations not needed any more
Don't define MONITOR-related structs and messages ourselves in wxMSW code, this shouldn't be needed any more as they're present in all remotely recent versions of the SDK. No real changes, just minor clean up.
This commit is contained in:
parent
9c5d6e893f
commit
e950e4a129
@ -43,31 +43,6 @@
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/msw/private/hiddenwin.h"
|
||||
|
||||
// Older versions of windef.h don't define HMONITOR. Unfortunately, we
|
||||
// can't directly test whether HMONITOR is defined or not in windef.h as
|
||||
// it's not a macro but a typedef, so we test for an unrelated symbol which
|
||||
// is only defined in winuser.h if WINVER >= 0x0500
|
||||
#if !defined(HMONITOR_DECLARED) && !defined(MNS_NOCHECK)
|
||||
DECLARE_HANDLE(HMONITOR);
|
||||
typedef BOOL(CALLBACK * MONITORENUMPROC )(HMONITOR, HDC, LPRECT, LPARAM);
|
||||
typedef struct tagMONITORINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
RECT rcMonitor;
|
||||
RECT rcWork;
|
||||
DWORD dwFlags;
|
||||
} MONITORINFO, *LPMONITORINFO;
|
||||
typedef struct tagMONITORINFOEX : public tagMONITORINFO
|
||||
{
|
||||
TCHAR szDevice[CCHDEVICENAME];
|
||||
} MONITORINFOEX, *LPMONITORINFOEX;
|
||||
#define MONITOR_DEFAULTTONULL 0x00000000
|
||||
#define MONITOR_DEFAULTTOPRIMARY 0x00000001
|
||||
#define MONITOR_DEFAULTTONEAREST 0x00000002
|
||||
#define MONITORINFOF_PRIMARY 0x00000001
|
||||
#define HMONITOR_DECLARED
|
||||
#endif
|
||||
|
||||
static const wxChar displayDllName[] = wxT("user32.dll");
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user