]> git.saurik.com Git - wxWidgets.git/commitdiff
Under WinCE, we need to send the groupbox z position to the bottom
authorJulian Smart <julian@anthemion.co.uk>
Tue, 27 Jul 2004 20:30:22 +0000 (20:30 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 27 Jul 2004 20:30:22 +0000 (20:30 +0000)
to reveal the controls that were created after the group control.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/radiobox.cpp

index 73c40bd139797de58ba32506ef94287dd45a493a..53b5d447152329f8a253c3a06236c6d1213fb7cd 100644 (file)
@@ -345,6 +345,13 @@ bool wxRadioBox::Create(wxWindow *parent,
                          0, 0, 0, 0, hwndParent,
                          (HMENU)NewControlId(), wxGetInstance(), NULL);
 
+#ifdef __WXWINCE__
+    // Set the z-order correctly
+    RECT rect;
+    GetWindowRect(GetHwnd(), & rect);
+    SetWindowPos(GetHwnd(), HWND_BOTTOM, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0);
+#endif
+
     SetSelection(0);
     SetSize(pos.x, pos.y, size.x, size.y);