X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/552a0ebdb279ab8ddafc63ea5e64db87c92da238..138618acb91e2a879a735c5806f9f728220f14df:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 094ab1fcd1..390a7007b9 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" @@ -339,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 @@ -347,12 +356,14 @@ class MemoryHDC { public: MemoryHDC() { m_hdc = ::CreateCompatibleDC(NULL); } - ~MemoryHDC() { ::DeleteObject(m_hdc); } + ~MemoryHDC() { ::DeleteDC(m_hdc); } operator HDC() const { return m_hdc; } 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 @@ -371,6 +382,8 @@ public: private: HDC m_hdc; HGDIOBJ m_hgdiobj; + + DECLARE_NO_COPY_CLASS(SelectInHDC) }; // ---------------------------------------------------------------------------