]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/combog.cpp
refresh tree item after changing its icon so that the change is visible
[wxWidgets.git] / src / generic / combog.cpp
index 84d31db480957a28335f4897242673786b375808..5559bff3c81f1e0d7b1707acae63df27f34231fd 100644 (file)
@@ -288,11 +288,7 @@ void wxGenericComboControl::OnMouseEvent( wxMouseEvent& event )
     if ( PreprocessMouseEvent(event,handlerFlags) )
         return;
 
-#ifdef __WXMSW__
-    const bool ctrlIsButton = true;
-#else
-    const bool ctrlIsButton = false;
-#endif
+    const bool ctrlIsButton = wxPlatformIs(wxMSW);
 
     if ( ctrlIsButton &&
          (m_windowStyle & (wxCC_SPECIAL_DCLICK|wxCB_READONLY)) == wxCB_READONLY )