1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/radiobox.cpp
3 // Purpose: wxRadioBox implementation
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "radiobox.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
34 #include "wx/bitmap.h"
36 #include "wx/radiobox.h"
37 #include "wx/settings.h"
41 #include "wx/msw/subwin.h"
43 #define USE_DEFERRED_SIZING 1
46 #if !defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__)
49 #include "wx/tooltip.h"
50 #endif // wxUSE_TOOLTIPS
52 // TODO: wxCONSTRUCTOR
53 #if 0 // wxUSE_EXTENDED_RTTI
54 WX_DEFINE_FLAGS( wxRadioBoxStyle
)
56 wxBEGIN_FLAGS( wxRadioBoxStyle
)
57 // new style border flags, we put them first to
58 // use them for streaming out
59 wxFLAGS_MEMBER(wxBORDER_SIMPLE
)
60 wxFLAGS_MEMBER(wxBORDER_SUNKEN
)
61 wxFLAGS_MEMBER(wxBORDER_DOUBLE
)
62 wxFLAGS_MEMBER(wxBORDER_RAISED
)
63 wxFLAGS_MEMBER(wxBORDER_STATIC
)
64 wxFLAGS_MEMBER(wxBORDER_NONE
)
66 // old style border flags
67 wxFLAGS_MEMBER(wxSIMPLE_BORDER
)
68 wxFLAGS_MEMBER(wxSUNKEN_BORDER
)
69 wxFLAGS_MEMBER(wxDOUBLE_BORDER
)
70 wxFLAGS_MEMBER(wxRAISED_BORDER
)
71 wxFLAGS_MEMBER(wxSTATIC_BORDER
)
72 wxFLAGS_MEMBER(wxBORDER
)
74 // standard window styles
75 wxFLAGS_MEMBER(wxTAB_TRAVERSAL
)
76 wxFLAGS_MEMBER(wxCLIP_CHILDREN
)
77 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW
)
78 wxFLAGS_MEMBER(wxWANTS_CHARS
)
79 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE
)
80 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB
)
81 wxFLAGS_MEMBER(wxVSCROLL
)
82 wxFLAGS_MEMBER(wxHSCROLL
)
84 wxFLAGS_MEMBER(wxRA_SPECIFY_COLS
)
85 wxFLAGS_MEMBER(wxRA_HORIZONTAL
)
86 wxFLAGS_MEMBER(wxRA_SPECIFY_ROWS
)
87 wxFLAGS_MEMBER(wxRA_VERTICAL
)
89 wxEND_FLAGS( wxRadioBoxStyle
)
91 IMPLEMENT_DYNAMIC_CLASS_XTI(wxRadioBox
, wxControl
,"wx/radiobox.h")
93 wxBEGIN_PROPERTIES_TABLE(wxRadioBox
)
94 wxEVENT_PROPERTY( Select
, wxEVT_COMMAND_RADIOBOX_SELECTED
, wxCommandEvent
)
95 wxPROPERTY_FLAGS( WindowStyle
, wxRadioBoxStyle
, long , SetWindowStyleFlag
, GetWindowStyleFlag
, , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
96 wxEND_PROPERTIES_TABLE()
99 IMPLEMENT_DYNAMIC_CLASS(wxRadioBox
, wxControl
)
110 // ---------------------------------------------------------------------------
112 // ---------------------------------------------------------------------------
114 // wnd proc for radio buttons
115 LRESULT APIENTRY _EXPORT
wxRadioBtnWndProc(HWND hWnd
,
120 // ---------------------------------------------------------------------------
122 // ---------------------------------------------------------------------------
124 // the pointer to standard radio button wnd proc
125 static WXFARPROC s_wndprocRadioBtn
= (WXFARPROC
)NULL
;
127 // ===========================================================================
129 // ===========================================================================
131 // ---------------------------------------------------------------------------
132 // wxRadioBox creation
133 // ---------------------------------------------------------------------------
136 void wxRadioBox::Init()
138 m_selectedButton
= wxNOT_FOUND
;
139 m_radioButtons
= NULL
;
142 m_radioHeight
= NULL
;
145 bool wxRadioBox::Create(wxWindow
*parent
,
147 const wxString
& title
,
151 const wxString choices
[],
154 const wxValidator
& val
,
155 const wxString
& name
)
157 // initialize members
158 m_majorDim
= majorDim
== 0 ? n
: majorDim
;
160 // common initialization
161 if ( !wxStaticBox::Create(parent
, id
, title
, pos
, size
, style
, name
) )
168 #endif // wxUSE_VALIDATORS/!wxUSE_VALIDATORS
170 m_radioButtons
= new wxSubwindows(n
);
171 m_radioWidth
= new int[n
];
172 m_radioHeight
= new int[n
];
174 for ( int i
= 0; i
< n
; i
++ )
177 m_radioHeight
[i
] = wxDefaultCoord
;
178 long styleBtn
= BS_AUTORADIOBUTTON
| WS_TABSTOP
| WS_CHILD
| WS_VISIBLE
;
180 styleBtn
|= WS_GROUP
;
182 long newId
= NewControlId();
184 HWND hwndBtn
= ::CreateWindow(_T("BUTTON"),
187 0, 0, 0, 0, // will be set in SetSize()
195 wxLogLastError(wxT("CreateWindow(radio btn)"));
200 (*m_radioButtons
)[i
] = hwndBtn
;
202 SubclassRadioButton((WXHWND
)hwndBtn
);
204 m_subControls
.Add(newId
);
207 // Create a dummy radio control to end the group.
208 (void)::CreateWindow(_T("BUTTON"),
210 WS_GROUP
| BS_AUTORADIOBUTTON
| WS_CHILD
,
211 0, 0, 0, 0, GetHwnd(),
212 (HMENU
)NewControlId(), wxGetInstance(), NULL
);
214 m_radioButtons
->SetFont(GetFont());
217 // Set the z-order correctly
218 SetWindowPos(GetHwnd(), HWND_BOTTOM
, 0, 0, 0, 0, SWP_NOMOVE
|SWP_NOSIZE
);
222 SetSize(pos
.x
, pos
.y
, size
.x
, size
.y
);
224 // Now that we have items determine what is the best size and set it.
230 bool wxRadioBox::Create(wxWindow
*parent
,
232 const wxString
& title
,
235 const wxArrayString
& choices
,
238 const wxValidator
& val
,
239 const wxString
& name
)
241 wxCArrayString
chs(choices
);
242 return Create(parent
, id
, title
, pos
, size
, chs
.GetCount(),
243 chs
.GetStrings(), majorDim
, style
, val
, name
);
246 wxRadioBox::~wxRadioBox()
248 m_isBeingDeleted
= true;
250 delete m_radioButtons
;
251 delete[] m_radioWidth
;
252 delete[] m_radioHeight
;
255 // NB: if this code is changed, wxGetWindowForHWND() which relies on having the
256 // radiobox pointer in GWL_USERDATA for radio buttons must be updated too!
257 void wxRadioBox::SubclassRadioButton(WXHWND hWndBtn
)
259 HWND hwndBtn
= (HWND
)hWndBtn
;
261 if ( !s_wndprocRadioBtn
)
262 s_wndprocRadioBtn
= (WXFARPROC
)wxGetWindowProc(hwndBtn
);
264 wxSetWindowProc(hwndBtn
, wxRadioBtnWndProc
);
265 wxSetWindowUserData(hwndBtn
, this);
268 // ----------------------------------------------------------------------------
270 // ----------------------------------------------------------------------------
272 bool wxRadioBox::MSWCommand(WXUINT cmd
, WXWORD id
)
274 if ( cmd
== BN_CLICKED
)
279 int selectedButton
= wxNOT_FOUND
;
281 int count
= GetCount();
282 for ( int i
= 0; i
< count
; i
++ )
284 if ( id
== wxGetWindowId((*m_radioButtons
)[i
]) )
292 if ( selectedButton
== wxNOT_FOUND
)
294 // just ignore it - due to a hack with WM_NCHITTEST handling in our
295 // wnd proc, we can receive dummy click messages when we click near
296 // the radiobox edge (this is ugly but Julian wouldn't let me get
301 if ( selectedButton
!= m_selectedButton
)
303 m_selectedButton
= selectedButton
;
305 SendNotificationEvent();
307 //else: don't generate events when the selection doesn't change
315 void wxRadioBox::Command(wxCommandEvent
& event
)
317 SetSelection (event
.GetInt());
319 ProcessCommand(event
);
322 void wxRadioBox::SendNotificationEvent()
324 wxCommandEvent
event(wxEVT_COMMAND_RADIOBOX_SELECTED
, m_windowId
);
325 event
.SetInt( m_selectedButton
);
326 event
.SetString( GetString(m_selectedButton
) );
327 event
.SetEventObject( this );
328 ProcessCommand(event
);
331 // ----------------------------------------------------------------------------
333 // ----------------------------------------------------------------------------
335 int wxRadioBox::GetCount() const
337 return m_radioButtons
->GetCount();
340 // returns the number of rows
341 int wxRadioBox::GetNumVer() const
343 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
349 return (GetCount() + m_majorDim
- 1)/m_majorDim
;
353 // returns the number of columns
354 int wxRadioBox::GetNumHor() const
356 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
358 return (GetCount() + m_majorDim
- 1)/m_majorDim
;
366 void wxRadioBox::SetString(int item
, const wxString
& label
)
368 wxCHECK_RET( IsValid(item
), wxT("invalid radiobox index") );
371 m_radioHeight
[item
] = wxDefaultCoord
;
373 ::SetWindowText((*m_radioButtons
)[item
], label
.c_str());
376 void wxRadioBox::SetSelection(int N
)
378 wxCHECK_RET( IsValid(N
), wxT("invalid radiobox index") );
380 // unselect the old button
381 if ( m_selectedButton
!= wxNOT_FOUND
)
382 ::SendMessage((*m_radioButtons
)[m_selectedButton
], BM_SETCHECK
, 0, 0L);
384 // and select the new one
385 ::SendMessage((*m_radioButtons
)[N
], BM_SETCHECK
, 1, 0L);
387 m_selectedButton
= N
;
390 // Find string for position
391 wxString
wxRadioBox::GetString(int item
) const
393 wxCHECK_MSG( IsValid(item
), wxEmptyString
,
394 wxT("invalid radiobox index") );
396 return wxGetWindowText((*m_radioButtons
)[item
]);
399 void wxRadioBox::SetFocus()
401 if ( GetCount() > 0 )
403 ::SetFocus((*m_radioButtons
)[m_selectedButton
== wxNOT_FOUND
405 : m_selectedButton
]);
409 // Enable a specific button
410 bool wxRadioBox::Enable(int item
, bool enable
)
412 wxCHECK_MSG( IsValid(item
), false,
413 wxT("invalid item in wxRadioBox::Enable()") );
415 BOOL ret
= ::EnableWindow((*m_radioButtons
)[item
], enable
);
417 return (ret
== 0) == enable
;
420 // Show a specific button
421 bool wxRadioBox::Show(int item
, bool show
)
423 wxCHECK_MSG( IsValid(item
), false,
424 wxT("invalid item in wxRadioBox::Show()") );
426 BOOL ret
= ::ShowWindow((*m_radioButtons
)[item
], show
? SW_SHOW
: SW_HIDE
);
428 return (ret
!= 0) == show
;
431 WX_FORWARD_STD_METHODS_TO_SUBWINDOWS(wxRadioBox
, wxStaticBox
, m_radioButtons
)
433 // ----------------------------------------------------------------------------
435 // ----------------------------------------------------------------------------
437 wxSize
wxRadioBox::GetMaxButtonSize() const
439 // calculate the max button size
442 const int count
= GetCount();
443 for ( int i
= 0 ; i
< count
; i
++ )
446 if ( m_radioWidth
[i
] < 0 )
448 GetTextExtent(wxGetWindowText((*m_radioButtons
)[i
]), &width
, &height
);
450 // adjust the size to take into account the radio box itself
451 // FIXME this is totally bogus!
458 width
= m_radioWidth
[i
];
459 height
= m_radioHeight
[i
];
462 if ( widthMax
< width
)
464 if ( heightMax
< height
)
468 return wxSize(widthMax
, heightMax
);
471 wxSize
wxRadioBox::GetTotalButtonSize(const wxSize
& sizeBtn
) const
473 // the radiobox should be big enough for its buttons
475 wxGetCharSize(m_hWnd
, &cx1
, &cy1
, GetFont());
477 int extraHeight
= cy1
;
479 int height
= GetNumVer() * sizeBtn
.y
+ cy1
/2 + extraHeight
;
480 int width
= GetNumHor() * (sizeBtn
.x
+ cx1
) + cx1
;
482 // Add extra space under the label, if it exists.
483 if (!wxControl::GetLabel().empty())
486 // and also wide enough for its label
488 GetTextExtent(GetTitle(), &widthLabel
, NULL
);
489 widthLabel
+= RADIO_SIZE
; // FIXME this is bogus too
490 if ( widthLabel
> width
)
493 return wxSize(width
, height
);
496 wxSize
wxRadioBox::DoGetBestSize() const
498 return GetTotalButtonSize(GetMaxButtonSize());
501 // Restored old code.
502 void wxRadioBox::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
504 int currentX
, currentY
;
505 GetPosition(¤tX
, ¤tY
);
506 int widthOld
, heightOld
;
507 GetSize(&widthOld
, &heightOld
);
512 if (x
== wxDefaultCoord
&& !(sizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
514 if (y
== wxDefaultCoord
&& !(sizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
521 wxGetCharSize(m_hWnd
, &cx1
, &cy1
, GetFont());
523 // Attempt to have a look coherent with other platforms: We compute the
524 // biggest toggle dim, then we align all items according this value.
525 wxSize maxSize
= GetMaxButtonSize();
526 int maxWidth
= maxSize
.x
,
527 maxHeight
= maxSize
.y
;
529 wxSize totSize
= GetTotalButtonSize(maxSize
);
530 int totWidth
= totSize
.x
,
531 totHeight
= totSize
.y
;
533 // only change our width/height if asked for
534 if ( width
== wxDefaultCoord
)
536 if ( sizeFlags
& wxSIZE_AUTO_WIDTH
)
542 if ( height
== wxDefaultCoord
)
544 if ( sizeFlags
& wxSIZE_AUTO_HEIGHT
)
550 // if our parent had prepared a defer window handle for us, use it (unless
551 // we are a top level window)
552 wxWindowMSW
*parent
= GetParent();
554 #if USE_DEFERRED_SIZING
555 HDWP hdwp
= parent
&& !IsTopLevel() ? (HDWP
)parent
->m_hDWP
: NULL
;
560 wxMoveWindowDeferred(hdwp
, this, GetHwnd(), xx
, yy
, width
, height
);
562 // Now position all the buttons: the current button will be put at
563 // wxPoint(x_offset, y_offset) and the new row/column will start at
564 // startX/startY. The size of all buttons will be the same wxSize(maxWidth,
565 // maxHeight) except for the buttons in the last column which should extend
566 // to the right border of radiobox and thus can be wider than this.
568 // Also, remember that wxRA_SPECIFY_COLS means that we arrange buttons in
569 // left to right order and m_majorDim is the number of columns while
570 // wxRA_SPECIFY_ROWS means that the buttons are arranged top to bottom and
571 // m_majorDim is the number of rows.
576 // Add extra space under the label, if it exists.
577 if (!wxControl::GetLabel().empty())
580 int startX
= x_offset
;
581 int startY
= y_offset
;
583 const int count
= GetCount();
584 for ( int i
= 0; i
< count
; i
++ )
586 // the last button in the row may be wider than the other ones as the
587 // radiobox may be wider than the sum of the button widths (as it
588 // happens, for example, when the radiobox label is very long)
590 if ( m_windowStyle
& wxRA_SPECIFY_COLS
)
592 // item is the last in its row if it is a multiple of the number of
593 // columns or if it is just the last item
595 isLastInTheRow
= ((n
% m_majorDim
) == 0) || (n
== count
);
597 else // wxRA_SPECIFY_ROWS
599 // item is the last in the row if it is in the last columns
600 isLastInTheRow
= i
>= (count
/m_majorDim
)*m_majorDim
;
603 // is this the start of new row/column?
604 if ( i
&& (i
% m_majorDim
== 0) )
606 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
608 // start of new column
610 x_offset
+= maxWidth
+ cx1
;
612 else // start of new row
615 y_offset
+= maxHeight
;
616 if (m_radioWidth
[0]>0)
622 if ( isLastInTheRow
)
624 // make the button go to the end of radio box
625 widthBtn
= startX
+ width
- x_offset
- 2*cx1
;
626 if ( widthBtn
< maxWidth
)
631 // normal button, always of the same size
635 // make all buttons of the same, maximal size - like this they cover
636 // the radiobox entirely and the radiobox tooltips are always shown
637 // (otherwise they are not when the mouse pointer is in the radiobox
638 // part not belonging to any radiobutton)
639 ::MoveWindow((*m_radioButtons
)[i
],
640 x_offset
, y_offset
, widthBtn
, maxHeight
,
643 // where do we put the next button?
644 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
647 y_offset
+= maxHeight
;
648 if (m_radioWidth
[0]>0)
653 // to the right of this one
654 x_offset
+= widthBtn
+ cx1
;
659 // Store the size so we can report it accurately
660 wxExtraWindowData
* extraData
= (wxExtraWindowData
*) m_windowReserved
;
663 extraData
= new wxExtraWindowData
;
664 m_windowReserved
= (void*) extraData
;
666 extraData
->m_pos
= wxPoint(xx
, yy
);
667 extraData
->m_size
= wxSize(width
, height
);
668 extraData
->m_deferring
= true;
670 // hdwp must be updated as it may have been changed
671 parent
->m_hDWP
= (WXHANDLE
)hdwp
;
675 // ----------------------------------------------------------------------------
677 // ----------------------------------------------------------------------------
681 WXHRGN
wxRadioBox::MSWGetRegionWithoutChildren()
684 ::GetWindowRect(GetHwnd(), &rc
);
685 HRGN hrgn
= ::CreateRectRgn(rc
.left
, rc
.top
, rc
.right
+ 1, rc
.bottom
+ 1);
687 const size_t count
= GetCount();
688 for ( size_t i
= 0; i
< count
; ++i
)
690 ::GetWindowRect((*m_radioButtons
)[i
], &rc
);
691 AutoHRGN
hrgnchild(::CreateRectRgnIndirect(&rc
));
692 ::CombineRgn(hrgn
, hrgn
, hrgnchild
, RGN_DIFF
);
699 wxRadioBox::MSWWindowProc(WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
)
701 if ( nMsg
== WM_PRINTCLIENT
)
703 // we have to process WM_PRINTCLIENT ourselves as otherwise the radio
704 // buttons background would never be drawn unless we have a parent with
705 // non default background
707 // so check first if we have one
708 if ( !HandlePrintClient((WXHDC
)wParam
) )
710 // no, we don't, erase the background ourselves (don't use our own
711 // colour as with static box, see comments there)
712 wxBrush
brush(GetParent()->GetBackgroundColour());
713 wxFillRect(GetHwnd(), (HDC
)wParam
, GetHbrushOf(brush
));
718 // FIXME: Without this, the radiobox corrupts other controls as it moves
719 // in a dynamic layout. Refreshing causes flicker, but it's better than
720 // leaving droppings. Note that for some reason, wxStaticBox doesn't need
721 // this (perhaps because it has no real children?)
722 else if (nMsg
== WM_MOVE
&& IsKindOf(CLASSINFO(wxRadioBox
)))
724 WXLRESULT res
= wxControl::MSWWindowProc(nMsg
, wParam
, lParam
);
725 wxRect rect
= GetRect();
726 GetParent()->Refresh(true, & rect
);
730 return wxStaticBox::MSWWindowProc(nMsg
, wParam
, lParam
);
733 #endif // __WXWINCE__
735 // ---------------------------------------------------------------------------
736 // window proc for radio buttons
737 // ---------------------------------------------------------------------------
739 LRESULT APIENTRY _EXPORT
wxRadioBtnWndProc(HWND hwnd
,
747 // we must tell IsDialogMessage()/our kbd processing code that we
748 // want to process arrows ourselves because neither of them is
749 // smart enough to handle arrows properly for us
751 long lDlgCode
= ::CallWindowProc(CASTWNDPROC s_wndprocRadioBtn
, hwnd
,
752 message
, wParam
, lParam
);
754 return lDlgCode
| DLGC_WANTARROWS
;
760 NMHDR
* hdr
= (NMHDR
*)lParam
;
761 if ( hdr
->code
== TTN_NEEDTEXT
)
764 radiobox
= (wxRadioBox
*)wxGetWindowUserData(hwnd
);
766 wxCHECK_MSG( radiobox
, 0,
767 wxT("radio button without radio box?") );
769 wxToolTip
*tooltip
= radiobox
->GetToolTip();
772 TOOLTIPTEXT
*ttt
= (TOOLTIPTEXT
*)lParam
;
773 ttt
->lpszText
= (wxChar
*)tooltip
->GetTip().c_str();
781 #endif // wxUSE_TOOLTIPS
785 wxRadioBox
*radiobox
= (wxRadioBox
*)wxGetWindowUserData(hwnd
);
787 wxCHECK_MSG( radiobox
, 0, wxT("radio button without radio box?") );
789 bool processed
= true;
813 // just to suppress the compiler warning
819 int selOld
= radiobox
->GetSelection();
820 int selNew
= radiobox
->GetNextItem
824 radiobox
->GetWindowStyle()
827 if ( selNew
!= selOld
)
829 radiobox
->SetSelection(selNew
);
830 radiobox
->SetFocus();
832 // emulate the button click
833 radiobox
->SendNotificationEvent();
844 wxRadioBox
*radiobox
= (wxRadioBox
*)wxGetWindowUserData(hwnd
);
846 wxCHECK_MSG( radiobox
, 0, wxT("radio button without radio box?") );
848 // if we don't do this, no focus events are generated for the
849 // radiobox and, besides, we need to notify the parent about
850 // the focus change, otherwise the focus handling logic in
851 // wxControlContainer doesn't work
852 if ( message
== WM_SETFOCUS
)
853 radiobox
->HandleSetFocus((WXHWND
)wParam
);
855 radiobox
->HandleKillFocus((WXHWND
)wParam
);
862 wxRadioBox
*radiobox
= (wxRadioBox
*)wxGetWindowUserData(hwnd
);
864 wxCHECK_MSG( radiobox
, 0, wxT("radio button without radio box?") );
866 bool processed
= false;
868 wxEvtHandler
* const handler
= radiobox
->GetEventHandler();
870 HELPINFO
* info
= (HELPINFO
*) lParam
;
871 if ( info
->iContextType
== HELPINFO_WINDOW
)
873 for ( wxWindow
* subjectOfHelp
= radiobox
;
875 subjectOfHelp
= subjectOfHelp
->GetParent() )
877 wxHelpEvent
helpEvent(wxEVT_HELP
,
878 subjectOfHelp
->GetId(),
879 wxPoint(info
->MousePos
.x
,
881 helpEvent
.SetEventObject(radiobox
);
882 if ( handler
->ProcessEvent(helpEvent
) )
889 else if (info
->iContextType
== HELPINFO_MENUITEM
)
891 wxHelpEvent
helpEvent(wxEVT_HELP
, info
->iCtrlId
);
892 helpEvent
.SetEventObject(radiobox
);
893 processed
= handler
->ProcessEvent(helpEvent
);
900 #endif // !__WXWINCE__
903 return ::CallWindowProc(CASTWNDPROC s_wndprocRadioBtn
, hwnd
, message
, wParam
, lParam
);
906 #endif // wxUSE_RADIOBOX