2003-07-15 18:52:32 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/msw/wrapwin.h
|
2003-07-15 18:52:32 +00:00
|
|
|
// Purpose: Wrapper around <windows.h>, to be included instead of it
|
2003-07-17 09:46:49 +00:00
|
|
|
// Author: Vaclav Slavik
|
2003-07-15 18:52:32 +00:00
|
|
|
// Created: 2003/07/22
|
2003-07-17 09:46:49 +00:00
|
|
|
// Copyright: (c) 2003 Vaclav Slavik
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2003-07-15 18:52:32 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_WRAPWIN_H_
|
|
|
|
#define _WX_WRAPWIN_H_
|
|
|
|
|
|
|
|
#include "wx/platform.h"
|
|
|
|
|
2017-01-13 22:39:52 +00:00
|
|
|
// before including windows.h, define version macros at (currently) maximal
|
|
|
|
// values because we do all our checks at run-time anyhow
|
|
|
|
#include "wx/msw/winver.h"
|
|
|
|
|
2005-06-08 20:13:27 +00:00
|
|
|
// strict type checking to detect conversion from HFOO to HBAR at compile-time
|
2003-07-15 18:52:32 +00:00
|
|
|
#ifndef STRICT
|
|
|
|
#define STRICT 1
|
|
|
|
#endif
|
|
|
|
|
2005-06-08 20:13:27 +00:00
|
|
|
// this macro tells windows.h to not define min() and max() as macros: we need
|
|
|
|
// this as otherwise they conflict with standard C++ functions
|
2005-02-23 16:54:16 +00:00
|
|
|
#ifndef NOMINMAX
|
|
|
|
#define NOMINMAX
|
|
|
|
#endif // NOMINMAX
|
2005-02-21 02:06:21 +00:00
|
|
|
|
2005-06-08 20:13:27 +00:00
|
|
|
|
2019-01-10 04:07:39 +00:00
|
|
|
// When the application wants to use <winsock2.h> (this is required for IPv6
|
|
|
|
// support, for example), we must include it before winsock.h, and as windows.h
|
|
|
|
// includes winsock.h, we have to do it before including it.
|
|
|
|
#if wxUSE_WINSOCK2
|
2007-11-18 20:53:33 +00:00
|
|
|
#include <winsock2.h>
|
|
|
|
#endif
|
|
|
|
|
2018-06-12 17:52:26 +00:00
|
|
|
// Disable any warnings inside Windows headers.
|
|
|
|
#ifdef __VISUALC__
|
|
|
|
#pragma warning(push, 1)
|
|
|
|
#endif
|
|
|
|
|
2003-07-15 18:52:32 +00:00
|
|
|
#include <windows.h>
|
2004-04-04 13:02:12 +00:00
|
|
|
|
2018-06-12 17:52:26 +00:00
|
|
|
#ifdef __VISUALC__
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif
|
|
|
|
|
2005-06-08 20:13:27 +00:00
|
|
|
// #undef the macros defined in winsows.h which conflict with code elsewhere
|
2003-07-15 18:52:32 +00:00
|
|
|
#include "wx/msw/winundef.h"
|
|
|
|
|
2003-07-17 09:46:49 +00:00
|
|
|
#endif // _WX_WRAPWIN_H_
|