1. wxPaintDC reuse now seems to actually work instead of leading to mysterious
bugs (but I still don't know why should we have it at all) 2. wxMenuItem initializes m_bChecked variable - thanks Purify 3. don't try to delete the brush which couldn't be created in app.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -234,8 +234,12 @@ bool wxApp::Initialize()
|
||||
LOGBRUSH lb;
|
||||
lb.lbStyle = BS_PATTERN;
|
||||
lb.lbHatch = (int)LoadBitmap( wxhInstance, "wxDISABLE_BUTTON_BITMAP" );
|
||||
wxDisableButtonBrush = ::CreateBrushIndirect( & lb );
|
||||
::DeleteObject( (HGDIOBJ)lb.lbHatch );
|
||||
if ( lb.lbHatch )
|
||||
{
|
||||
wxDisableButtonBrush = ::CreateBrushIndirect( & lb );
|
||||
::DeleteObject( (HGDIOBJ)lb.lbHatch );
|
||||
}
|
||||
//else: wxWindows resources are probably not linked in
|
||||
|
||||
#if wxUSE_PENWINDOWS
|
||||
wxRegisterPenWin();
|
||||
|
Reference in New Issue
Block a user