- if (m_windowStyle & wxCLIP_SIBLINGS )
- lsStyle |= WS_CLIPSIBLINGS;
- //
- // If the parent is a scrolled window the controls must
- // have this style or they will overlap the scrollbars
- //
- if (pParent)
- if (pParent->IsKindOf(CLASSINFO(wxScrolledWindow)) ||
- pParent->IsKindOf(CLASSINFO(wxGenericScrolledWindow)))
- lsStyle |= WS_CLIPSIBLINGS;
-
- m_hWnd = (WXHWND)::WinCreateWindow ( GetHwndOf(pParent)
- ,WC_BUTTON
- ,rsLabel.c_str()
- ,lsStyle
- ,0, 0, 0, 0
- ,GetWinHwnd(pParent)
- ,HWND_TOP
- ,(HMENU)m_windowId
- ,NULL
- ,NULL
- );
- wxCHECK_MSG(m_hWnd, FALSE, wxT("Failed to create radiobutton"));
-
- if (rsLabel != wxT(""))
+ vDC.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
+ snRadioSize = vDC.GetCharHeight();
+ }
+
+ wxString sStr = GetLabel();
+ int nRadioWidth;
+ int nRadioHeight;
+
+ if (!sStr.empty())