From a72ebcd0917c35e860e5c6c4cc528fefa6fa9cdd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Oct 2010 23:50:45 +0000 Subject: [PATCH] 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 --- include/wx/msw/private.h | 5 +++++ 1 file changed, 5 insertions(+) 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(); } }; -- 2.45.2