]> git.saurik.com Git - wxWidgets.git/commitdiff
Conditional compilation fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 22 Jun 2004 08:26:36 +0000 (08:26 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 22 Jun 2004 08:26:36 +0000 (08:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 6e5aed096fa314969544038941e8be998b73d678..998b15822d2274f6d47e820ca5ee2928288dbcac 100644 (file)
@@ -3695,7 +3695,13 @@ wxWindowMSW::MSWOnDrawItem(int WXUNUSED_UNLESS_ODRAWN(id),
 #else // !wxUSE_OWNER_DRAWN
     // we may still have owner-drawn buttons internally because we have to make
     // them owner-drawn to support colour change
-    wxControl *item = wxDynamicCast(FindItem(id), wxButton);
+    wxControl *item = 
+#                     if wxUSE_BUTTON
+                         wxDynamicCast(FindItem(id), wxButton)
+#                     else
+                         NULL
+#                     endif
+                    ;
 #endif // USE_OWNER_DRAWN
 
     if ( item )