X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22f3361e1cf25c52a2da8fdfc5cb081809e18fb9..fed66a8797b486b0a242fc878248511b1f594897:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index f4cb8b3908..a1308f5b47 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -213,6 +213,7 @@ extern LONG APIENTRY _EXPORT #if wxUSE_GUI #include +#include // make conversion from wxColour and COLORREF a bit less painful inline COLORREF wxColourToRGB(const wxColour& c) @@ -356,7 +357,7 @@ class MemoryHDC { public: MemoryHDC() { m_hdc = ::CreateCompatibleDC(NULL); } - ~MemoryHDC() { ::DeleteObject(m_hdc); } + ~MemoryHDC() { ::DeleteDC(m_hdc); } operator HDC() const { return m_hdc; }