From: Vadim Zeitlin Date: Sat, 30 Oct 2010 23:50:45 +0000 (+0000) Subject: Make it impossible to initialize AutoHBITMAP after construction. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a72ebcd0917c35e860e5c6c4cc528fefa6fa9cdd Make it impossible to initialize AutoHBITMAP after construction. Add default ctor and Init() method to wxMSW private AutoHBITMAP class. This doesn't change anything for now but will be used by an upcoming commit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 23da42791b..309f4376de 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -541,8 +541,13 @@ public: class AutoHBITMAP : private AutoGDIObject { public: + AutoHBITMAP() + : AutoGDIObject() { } + AutoHBITMAP(HBITMAP hbmp) : AutoGDIObject(hbmp) { } + void Init(HBITMAP hbmp) { InitGdiobj(hbmp); } + operator HBITMAP() const { return (HBITMAP)GetObject(); } };