+bool wxBitmapRadioButton::Create(wxWindow *parent, wxWindowID id,
+ const wxBitmap *bitmap,
+ const wxPoint& pos,
+ const wxSize& size, long style,
+#if wxUSE_VALIDATORS
+ const wxValidator& validator,
+#endif
+ const wxString& name)
+{
+ SetName(name);
+#if wxUSE_VALIDATORS
+ SetValidator(validator);
+#endif
+
+ if (parent) parent->AddChild(this);
+ SetBackgroundColour(parent->GetBackgroundColour());
+ SetForegroundColour(parent->GetForegroundColour());
+
+ if ( id == -1 )
+ m_windowId = (int)NewControlId();
+ else
+ m_windowId = id;
+
+ int x = pos.x;
+ int y = pos.y;
+ int width = size.x;
+ int height = size.y;
+ m_windowStyle = style ;
+
+ long groupStyle = 0;
+ if (m_windowStyle & wxRB_GROUP)
+ groupStyle = WS_GROUP;
+
+// TODO:
+/*
+// long msStyle = groupStyle | RADIO_FLAGS;
+// long msStyle = groupStyle | BS_RADIOBUTTON | WS_CHILD | WS_VISIBLE ;
+
+ m_hWnd = (WXHWND) CreateWindowEx(MakeExtendedStyle(m_windowStyle), RADIO_CLASS, "toggle",
+ msStyle,0,0,0,0,
+ (HWND) parent->GetHWND(), (HMENU)m_windowId, wxGetInstance(), NULL);
+
+ wxCHECK_MSG( m_hWnd, "Failed to create radio button", FALSE );
+
+*/
+ // Subclass again for purposes of dialog editing mode
+ SubclassWin(GetHWND());
+
+ SetSize(x, y, width, height);
+
+ return TRUE;
+}
+
+void wxBitmapRadioButton::SetLabel(const wxBitmap *bitmap)
+{
+}
+
+void wxBitmapRadioButton::SetValue(bool value)
+{
+// Following necessary for Win32s, because Win32s translate BM_SETCHECK
+// SendMessage((HWND) GetHWND(), BM_SETCHECK, (WPARAM)value, 0L);
+}
+
+// Get single selection, for single choice list items
+bool wxBitmapRadioButton::GetValue(void) const
+{
+// return (bool)SendMessage((HWND) GetHWND(), BM_GETCHECK, 0, 0L);
+ return FALSE;
+}