From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Wed, 21 Jul 2004 12:23:54 +0000 (+0000)
Subject: create the disabled button brush if we're not using Microwin, not if we're using it
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ec91fc141f1a25425af061638b0b31d6175cdd20

create the disabled button brush if we're not using Microwin, not if we're using it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/msw/app.cpp b/src/msw/app.cpp
index b7ea221656..688ca701e2 100644
--- a/src/msw/app.cpp
+++ b/src/msw/app.cpp
@@ -322,20 +322,19 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
 
     RegisterWindowClasses();
 
-#if defined(__WXMICROWIN__) && !defined(__WXWINCE__)
+#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
     // Create the brush for disabling bitmap buttons
-
     LOGBRUSH lb;
     lb.lbStyle = BS_PATTERN;
     lb.lbColor = 0;
     lb.lbHatch = (int)LoadBitmap( wxhInstance, wxT("wxDISABLE_BUTTON_BITMAP") );
     if ( lb.lbHatch )
     {
-        wxDisableButtonBrush = ::CreateBrushIndirect( & lb );
+        wxDisableButtonBrush = ::CreateBrushIndirect( &lb );
         ::DeleteObject( (HGDIOBJ)lb.lbHatch );
     }
     //else: wxWidgets resources are probably not linked in
-#endif
+#endif // !__WXMICROWIN__ && !__WXWINCE__
 
 #if wxUSE_PENWINDOWS
     wxRegisterPenWin();