+#if defined(__SMARTPHONE__) || defined(__POCKETPC__)
+ case WM_ACTIVATE:
+ {
+ SHACTIVATEINFO* info = (SHACTIVATEINFO*) m_activateInfo;
+ if (info)
+ SHHandleWMActivate(GetHwnd(), wParam, lParam, info, FALSE);
+
+ // This implicitly sends a wxEVT_ACTIVATE_APP event
+ if (wxTheApp)
+ wxTheApp->SetActive(wParam != 0, FindFocus());
+ break;
+ }
+ case WM_SETTINGCHANGE:
+ {
+ SHACTIVATEINFO* info = (SHACTIVATEINFO*) m_activateInfo;
+ if (info)
+ SHHandleWMSettingChange(GetHwnd(), wParam, lParam, info);
+ processed = true;
+ break;
+ }
+ case WM_HIBERNATE:
+ {
+ wxActivateEvent event(wxEVT_HIBERNATE, true, wxID_ANY);
+ event.SetEventObject(wxTheApp);
+
+ if (wxTheApp)
+ {
+ processed = wxTheApp->ProcessEvent(event);
+ }
+ break;
+ }
+#endif
+