]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/bmpbuttn.cpp
Call wxApp::ProcessPendingEvents() from wxX11 event loop.
[wxWidgets.git] / src / msw / bmpbuttn.cpp
index 1438b7cffa5d2645f293968dd4501acad6cac03b..a77672cbfbd45a5b16276c935ba98b8b3628cd9a 100644 (file)
@@ -130,8 +130,8 @@ bool wxBitmapButton::Create(wxWindow *parent,
                             const wxValidator& wxVALIDATOR_PARAM(validator),
                             const wxString& name)
 {
-    if ( !wxBitmapButtonBase::Create(parent, id, "",
-                                     pos, size, style, validator, name) )
+    if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style,
+                                     validator, name) )
         return false;
 
     SetBitmapLabel(bitmap);
@@ -178,6 +178,11 @@ void wxBitmapButton::DoSetBitmap(const wxBitmap& bitmap, State which)
                 // from the normal one
                 m_disabledSetByUser = true;
                 break;
+
+            default:
+                // nothing special to do but include the default clause to
+                // suppress gcc warnings
+                ;
         }
     }