]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/button.cpp
why cvs thinks that I modified these files?
[wxWidgets.git] / src / msw / button.cpp
index 4a5a7bbf4ea151a61d3130d6cb39e0b9df5c3a3a..1d8bbaf9902dac003a6316938b9cce64e5ae3e68 100644 (file)
@@ -201,9 +201,12 @@ void wxButton::Command(wxCommandEvent & event)
 bool wxButton::MSWCommand(WXUINT param, WXWORD id)
 {
     bool processed = FALSE;
-    if ( param == BN_CLICKED || param == 1 ) // 1 for accelerator
+    switch ( param )
     {
-        processed = SendClickEvent();
+        case 1:                                             // 1 for accelerator
+        case BN_CLICKED:
+            processed = SendClickEvent();
+            break;
     }
 
     return processed;