]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobox.cpp
Added wxToggleButton handler
[wxWidgets.git] / src / msw / radiobox.cpp
index 4b8f7161b9b043cd672cbbe28d6749b09637a284..524027ecf9e7d15dd2b688b2b6a383b461fc38bb 100644 (file)
@@ -345,6 +345,11 @@ bool wxRadioBox::Create(wxWindow *parent,
                          0, 0, 0, 0, hwndParent,
                          (HMENU)NewControlId(), wxGetInstance(), NULL);
 
+#ifdef __WXWINCE__
+    // Set the z-order correctly
+    SetWindowPos(GetHwnd(), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
+#endif
+
     SetSelection(0);
     SetSize(pos.x, pos.y, size.x, size.y);
 
@@ -1035,7 +1040,7 @@ LRESULT APIENTRY _EXPORT wxRadioBtnWndProc(HWND hwnd,
 
                 wxCHECK_MSG( radiobox, 0, wxT("radio button without radio box?") );
 
-                bool processed = TRUE;
+                bool processed wxDUMMY_INITIALIZE(true);
 
                 // HELPINFO doesn't seem to be supported on WinCE.
 #ifndef __WXWINCE__
@@ -1071,7 +1076,7 @@ LRESULT APIENTRY _EXPORT wxRadioBtnWndProc(HWND hwnd,
                     processed = radiobox->GetEventHandler()->ProcessEvent(helpEvent);
                 }
                 else
-                    processed = FALSE;
+                    processed = false;
 #endif
                 if (processed)
                     return 0;