Set HBITMAP and its parameters in one call
To avoid separate calls to SetWidth/Height/Size/Depth functions after calling SetHBITMAP() use newly implemented InitFromHBITMAP() function which allows to set HBITMAP together with its parameters in one call.
This commit is contained in:
@@ -201,6 +201,8 @@ public:
|
||||
public:
|
||||
void SetHBITMAP(WXHBITMAP bmp) { SetHandle((WXHANDLE)bmp); }
|
||||
WXHBITMAP GetHBITMAP() const { return (WXHBITMAP)GetHandle(); }
|
||||
bool InitFromHBITMAP(WXHBITMAP bmp, int width, int height, int depth);
|
||||
void ResetHBITMAP() { InitFromHBITMAP(NULL, 0, 0, 0); }
|
||||
|
||||
void SetSelectedInto(wxDC *dc);
|
||||
wxDC *GetSelectedInto() const;
|
||||
|
Reference in New Issue
Block a user