X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3047441e52dadaf9cd27aa5a1e0a713bd82735..d9b21c9f47f59f36d73220270002b55a7babfdfc:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 0406fe9bc7..f4cb8b3908 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -20,6 +20,13 @@ #include + +#if defined (__WXWINCE__) + #include // RGB, COLORREF + #include // Global Namespaces ::GetKeyState, ::GetWindowRect +#endif + + #ifdef __WXMICROWIN__ // Extra prototypes and symbols not defined by MicroWindows #include "wx/msw/microwin.h" @@ -81,12 +88,15 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT; // this defines a CASTWNDPROC macro which casts a pointer to the type of a // window proc -#if defined(STRICT) || defined(__GNUC__) +#if defined(__WXWINCE__) + typedef FARPROC WndProcCast; +#elif defined(STRICT) || defined(__GNUC__) typedef WNDPROC WndProcCast; #else typedef FARPROC WndProcCast; #endif + #define CASTWNDPROC (WndProcCast) // --------------------------------------------------------------------------- @@ -336,6 +346,8 @@ public: private: HDC m_hdc; + + DECLARE_NO_COPY_CLASS(ScreenHDC) }; // the same as ScreenHDC but for memory DCs: creates the HDC in ctor and @@ -350,6 +362,8 @@ public: private: HDC m_hdc; + + DECLARE_NO_COPY_CLASS(MemoryHDC) }; // a class which selects a GDI object into a DC in its ctor and deselects in @@ -368,6 +382,8 @@ public: private: HDC m_hdc; HGDIOBJ m_hgdiobj; + + DECLARE_NO_COPY_CLASS(SelectInHDC) }; // ---------------------------------------------------------------------------