]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toplevel.cpp
minor cleanup, part 2
[wxWidgets.git] / src / msw / toplevel.cpp
index c8681d56119e935da904e6c822080d02b18c6faa..f8897c01853fad576b3f24df32f15647bc4568d0 100644 (file)
@@ -326,9 +326,9 @@ WXLRESULT wxTopLevelWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WX
     WXLRESULT rc = 0;
     bool processed = false;
 
+#if defined(__SMARTPHONE__) || defined(__POCKETPC__)
     switch ( message )
     {
-#if defined(__SMARTPHONE__) || defined(__POCKETPC__)
         case WM_ACTIVATE:
         {
             SHACTIVATEINFO* info = (SHACTIVATEINFO*) m_activateInfo;
@@ -360,8 +360,8 @@ WXLRESULT wxTopLevelWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WX
             }
             break;
         }
-#endif
     }
+#endif
 
     if ( !processed )
         rc = wxTopLevelWindowBase::MSWWindowProc(message, wParam, lParam);
@@ -1124,13 +1124,17 @@ wxDlgProc(HWND hDlg,
             return FALSE;
         }
 
-#if defined(__SMARTPHONE__) || defined(__POCKETPC__)
         case WM_SETTINGCHANGE:
         {
+#if defined(__SMARTPHONE__) || defined(__POCKETPC__)
             wxTopLevelWindow *tlw = wxDynamicCast(wxGetWindowFromHWND(hDlg), wxTopLevelWindow);
             if(tlw) return tlw->HandleSettingChange(wParam,lParam) ? TRUE : FALSE;
-        }
+#else
+            wxUnusedVar(wParam);
+            wxUnusedVar(lParam);
 #endif
+            break;
+        }
     }
 
     // for almost all messages, returning FALSE means that we didn't process