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:
@@ -953,7 +953,7 @@ bool wxToolBar::Realize()
|
||||
{
|
||||
hBitmap = GetHbitmapOf(bitmap);
|
||||
// don't delete this HBITMAP!
|
||||
bitmap.SetHBITMAP(0);
|
||||
bitmap.ResetHBITMAP();
|
||||
}
|
||||
|
||||
if ( remapValue == Remap_Buttons )
|
||||
|
Reference in New Issue
Block a user