Deprecate wxBitmap::SetWidth/Height/Size/Depth, wxIcon::SetSize functions
wxBitmap and wxIcon dimensions and colour depth are determined during creation so using all these functions could lead to inconsistencies.
This commit is contained in:
@@ -199,7 +199,9 @@ public:
|
||||
void MSWUpdateAlpha();
|
||||
|
||||
public:
|
||||
void SetHBITMAP(WXHBITMAP bmp) { SetHandle((WXHANDLE)bmp); }
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
wxDEPRECATED_INLINE(void SetHBITMAP(WXHBITMAP bmp), SetHandle((WXHANDLE)bmp); )
|
||||
#endif // WXWIN_COMPATIBILITY_3_0
|
||||
WXHBITMAP GetHBITMAP() const { return (WXHBITMAP)GetHandle(); }
|
||||
bool InitFromHBITMAP(WXHBITMAP bmp, int width, int height, int depth);
|
||||
void ResetHBITMAP() { InitFromHBITMAP(NULL, 0, 0, 0); }
|
||||
|
Reference in New Issue
Block a user