class AutoHBITMAP : private AutoGDIObject
{
public:
+ AutoHBITMAP()
+ : AutoGDIObject() { }
+
AutoHBITMAP(HBITMAP hbmp) : AutoGDIObject(hbmp) { }
+ void Init(HBITMAP hbmp) { InitGdiobj(hbmp); }
+
operator HBITMAP() const { return (HBITMAP)GetObject(); }
};
// and returns either that window if it does or NULL otherwise
extern WXDLLIMPEXP_CORE wxWindow* wxFindWinFromHandle(HWND hwnd);
-// without STRICT WXHWND is the same as HWND anyhow
-inline wxWindow* wxFindWinFromHandle(WXHWND hWnd)
-{
- return wxFindWinFromHandle(static_cast<HWND>(hWnd));
-}
-
// find the window for HWND which is part of some wxWindow, i.e. unlike
// wxFindWinFromHandle() above it will also work for "sub controls" of a
// wxWindow.