-#if 0
-bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
- const wxPoint& pos, const wxSize& size,
- int n, const wxBitmap *choices[],
- int majorDim, long style,
- const wxValidator& val, const wxString& name)
-{
- m_selectedButton = -1;
- m_noRowsOrCols = 0;
- m_noItems = n;
-
- SetName(name);
- SetValidator(val);
-
- parent->AddChild(this);
- m_backgroundColour = parent->GetDefaultBackgroundColour() ;
- m_foregroundColour = parent->GetDefaultForegroundColour() ;
-
- m_windowStyle = (long&)style;
-
- int x = pos.x;
- int y = pos.y;
- int width = size.x;
- int height = size.y;
-
- if (id == -1)
- m_windowId = NewControlId();
- else
- m_windowId = id;
-
-
- m_noRowsOrCols = majorDim;
- if (majorDim==0)
- m_majorDim = n ;
- m_majorDim = majorDim ;
- HWND the_handle ;
-
- long msStyle = GROUP_FLAGS;
-
- bool want3D;
- WXDWORD exStyle = Determine3DEffects(0, &want3D) ;
- // Even with extended styles, need to combine with WS_BORDER
- // for them to look right.
- if (want3D && ((m_windowStyle & wxSIMPLE_BORDER) || (m_windowStyle & wxRAISED_BORDER) ||
- (m_windowStyle & wxSUNKEN_BORDER) || (m_windowStyle & wxDOUBLE_BORDER)))
- msStyle |= WS_BORDER;
-
- m_hWnd = (WXHWND) CreateWindowEx((DWORD) exStyle, GROUP_CLASS, (title == "" ? NULL : (const char *)title),
- msStyle,
- 0,0,0,0,
- (HWND) parent->GetHWND(), (HMENU) m_windowId, wxGetInstance(), NULL) ;
-
-/*
- if (labelFont)
- {
- labelFont->RealizeResource();
- if (labelFont->GetResourceHandle())
- SendMessage(ms_handle,WM_SETFONT,
- (WPARAM)labelFont->GetResourceHandle(),0L);
- }
-*/
- the_handle = (HWND) parent->GetHWND();
-
-#if CTL3D
- if (want3D)
- {
- Ctl3dSubclassCtl((HWND) m_hWnd);
- m_useCtl3D = TRUE;
- }
-#endif
+ if ( majorDim == 0 )
+ m_majorDim = n;
+ else
+ m_majorDim = majorDim;
+ m_noRowsOrCols = majorDim;
+
+ long msStyle = GROUP_FLAGS;
+
+ bool want3D;
+ WXDWORD exStyle = Determine3DEffects(0, &want3D);
+
+ HWND hwndParent = (HWND)parent->GetHWND();
+
+ m_hWnd = (WXHWND)::CreateWindowEx
+ (
+ (DWORD)exStyle,
+ GROUP_CLASS,
+ title,
+ msStyle,
+ 0, 0, 0, 0,
+ hwndParent,
+ (HMENU)m_windowId,
+ wxGetInstance(),
+ NULL
+ );
+
+#if wxUSE_CTL3D
+ if (want3D)
+ {
+ Ctl3dSubclassCtl((HWND)m_hWnd);
+ m_useCtl3D = TRUE;
+ }
+#endif // wxUSE_CTL3D