- wxButton *btn = wxDynamicCast(FindWindow(wxID_CANCEL), wxButton);
- if ( btn && btn->IsEnabled() )
- {
- // if we do have a cancel button, do press it
- btn->MSWCommand(BN_CLICKED, 0 /* unused */);
- processed = TRUE;
+#ifndef __SMARTPHONE__
+ case IDOK:
+ wxButton *btn = wxDynamicCast(FindWindow(wxID_CANCEL), wxButton);
+ if ( btn && btn->IsEnabled() )
+ {
+ // if we do have a cancel button, do press it
+ btn->MSWCommand(BN_CLICKED, 0 /* unused */);
+ processed = true;
+ break;
+ }
+#else // ifdef __SMARTPHONE__
+ case IDM_LEFT:
+ case IDM_RIGHT:
+ processed = HandleCommand( LOWORD(wParam) , 0 , NULL );