1 /////////////////////////////////////////////////////////////////////////////
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
18 #include "wx/wxchar.h"
19 #include "wx/string.h"
20 #include "wx/bitmap.h"
22 #include "wx/radiobox.h"
25 #include "wx/os2/private.h"
27 IMPLEMENT_DYNAMIC_CLASS(wxRadioBox
, wxControl
)
29 // ---------------------------------------------------------------------------
31 // ---------------------------------------------------------------------------
33 // wnd proc for radio buttons
34 MRESULT EXPENTRY
wxRadioBtnWndProc( HWND hWnd
40 // ---------------------------------------------------------------------------
42 // ---------------------------------------------------------------------------
44 // the pointer to standard radio button wnd proc
45 static WXFARPROC fnWndProcRadioBtn
= NULL
;
47 // ===========================================================================
49 // ===========================================================================
51 // ---------------------------------------------------------------------------
53 // ---------------------------------------------------------------------------
56 wxRadioBox::wxRadioBox()
58 m_nSelectedButton
= -1;
61 m_ahRadioButtons
= NULL
;
63 m_pnRadioWidth
= NULL
;
64 m_pnRadioHeight
= NULL
;
65 } // end of wxRadioBox::wxRadioBox
67 wxRadioBox::~wxRadioBox()
69 m_isBeingDeleted
= TRUE
;
74 for (i
= 0; i
< m_nNoItems
; i
++)
75 ::WinDestroyWindow((HWND
)m_ahRadioButtons
[i
]);
76 delete[] m_ahRadioButtons
;
79 delete[] m_pnRadioWidth
;
81 delete[] m_pnRadioHeight
;
82 } // end of wxRadioBox::~wxRadioBox
84 void wxRadioBox::AdjustButtons(
94 int nYOffset
= nY
+ nHeight
;
104 wxGetCharSize( m_hWnd
109 vMaxSize
= GetMaxButtonSize();
110 nMaxWidth
= vMaxSize
.x
;
111 nMaxHeight
= vMaxSize
.y
;
114 nYOffset
-= (nMaxHeight
+ ((3*nCy1
)/2));
119 for (int i
= 0; i
< m_nNoItems
; i
++)
122 // The last button in the row may be wider than the other ones as the
123 // radiobox may be wider than the sum of the button widths (as it
124 // happens, for example, when the radiobox label is very long)
126 bool bIsLastInTheRow
;
128 if (m_windowStyle
& wxRA_SPECIFY_COLS
)
131 // Item is the last in its row if it is a multiple of the number of
132 // columns or if it is just the last item
136 bIsLastInTheRow
= ((n
% m_nMajorDim
) == 0) || (n
== m_nNoItems
);
138 else // winRA_SPECIFY_ROWS
141 // Item is the last in the row if it is in the last columns
143 bIsLastInTheRow
= i
>= (m_nNoItems
/m_nMajorDim
) * m_nMajorDim
;
147 // Is this the start of new row/column?
149 if (i
&& (i
% m_nMajorDim
== 0))
151 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
155 // Start of new column
158 nXOffset
+= nMaxWidth
+ nCx1
;
160 else // start of new row
163 nYOffset
-= nMaxHeight
;
164 if (m_pnRadioWidth
[0] > 0L)
174 // Make the button go to the end of radio box
176 nWidthBtn
= nStartX
+ nWidth
- nXOffset
- (2 * nCx1
);
177 if (nWidthBtn
< nMaxWidth
)
178 nWidthBtn
= nMaxWidth
;
183 // Normal button, always of the same size
185 nWidthBtn
= nMaxWidth
;
189 // Make all buttons of the same, maximal size - like this they
190 // cover the radiobox entirely and the radiobox tooltips are always
191 // shown (otherwise they are not when the mouse pointer is in the
192 // radiobox part not beYInt32ing to any radiobutton)
194 ::WinSetWindowPos( (HWND
)m_ahRadioButtons
[i
]
200 ,SWP_ZORDER
| SWP_SIZE
| SWP_MOVE
| SWP_SHOW
203 // Where do we put the next button?
205 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
210 nYOffset
-= nMaxHeight
;
211 if (m_pnRadioWidth
[0] > 0)
217 // To the right of this one
219 nXOffset
+= nWidthBtn
+ nCx1
;
222 } // end of wxRadioBox::AdjustButtons
224 void wxRadioBox::Command (
225 wxCommandEvent
& rEvent
228 SetSelection (rEvent
.GetInt());
229 ProcessCommand(rEvent
);
230 } // end of wxRadioBox::Command
232 bool wxRadioBox::ContainsHWND(
236 size_t nCount
= GetCount();
239 for (i
= 0; i
< nCount
; i
++)
241 if (GetRadioButtons()[i
] == hWnd
)
245 } // end of wxRadioBox::ContainsHWND
247 bool wxRadioBox::Create(
250 , const wxString
& rsTitle
251 , const wxPoint
& rPos
252 , const wxSize
& rSize
254 , const wxString asChoices
[]
258 , const wxValidator
& rVal
260 , const wxString
& rsName
264 // System fonts are too big in OS/2 and they are blue
265 // We want smaller fonts and black by default.
267 wxFont
& rFont
= *wxSMALL_FONT
;
271 vColour
.Set(wxString("BLACK"));
272 lColor
= (LONG
)vColour
.GetPixel();
273 m_nSelectedButton
= -1;
276 m_nMajorDim
= nMajorDim
== 0 ? nNum
: nMajorDim
;
277 m_nNoRowsOrCols
= nMajorDim
;
280 // Common initialization
282 if (!OS2CreateControl( pParent
296 if (!OS2CreateControl( "STATIC"
297 ,SS_GROUPBOX
| WS_GROUP
303 #if RADIOBTN_PARENT_IS_RADIOBOX
304 HWND hWndParent
= GetHwnd();
306 HWND hWndParent
= GetHwndOf(pParent
);
311 // Some radio boxes test consecutive id.
313 (void)NewControlId();
314 m_ahRadioButtons
= new WXHWND
[nNum
];
315 m_pnRadioWidth
= new int[nNum
];
316 m_pnRadioHeight
= new int[nNum
];
320 hFont
= rFont
.GetResourceHandle();
323 for (int i
= 0; i
< nNum
; i
++)
325 m_pnRadioWidth
[i
] = m_pnRadioHeight
[i
] = -1;
327 long lStyleBtn
= BS_AUTORADIOBUTTON
| WS_TABSTOP
| WS_VISIBLE
;
328 int nNewId
= NewControlId();
330 if (i
== 0 && lStyle
== 0)
331 lStyleBtn
|= WS_GROUP
;
333 HWND hWndBtn
= (WXHWND
)::WinCreateWindow ( GetHwndOf(pParent
)
344 ::WinSetPresParam( hWndBtn
353 m_ahRadioButtons
[i
] = (WXHWND
)hWndBtn
;
354 SubclassRadioButton((WXHWND
)hWndBtn
);
355 wxOS2SetFont( hWndBtn
358 ::WinSetWindowULong(hWndBtn
, QWL_USER
, (ULONG
)this);
359 m_aSubControls
.Add(nNewId
);
363 // Create a dummy radio control to end the group.
365 (void)::WinCreateWindow ( GetHwndOf(pParent
)
368 ,WS_GROUP
| BS_AUTORADIOBUTTON
372 ,(HMENU
)NewControlId()
376 SetFont(*wxSMALL_FONT
);
377 ::WinSetPresParam( m_hWnd
389 } // end of wxRadioBox::Create
391 wxSize
wxRadioBox::DoGetBestSize() const
393 return (GetTotalButtonSize(GetMaxButtonSize()));
394 } // end of WinGuiBase_CRadioBox::DoGetBestSize
396 void wxRadioBox::DoSetSize(
410 #if RADIOBTN_PARENT_IS_RADIOBOX
419 wxSize vMaxSize
= GetMaxButtonSize();
428 m_nSizeFlags
= nSizeFlags
;
429 GetPosition( &nCurrentX
436 if (nX
== -1 && !(nSizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
438 if (nY
== -1 && !(nSizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
442 wxGetCharSize( m_hWnd
449 // Attempt to have a look coherent with other platforms: We compute the
450 // biggest toggle dim, then we align all items according this value.
452 vMaxSize
= GetMaxButtonSize();
453 nMaxWidth
= vMaxSize
.x
;
454 nMaxHeight
= vMaxSize
.y
;
456 vTotSize
= GetTotalButtonSize(vMaxSize
);
457 nTotWidth
= vTotSize
.x
;
458 nTotHeight
= vTotSize
.y
;
461 // Only change our width/height if asked for
465 if (nSizeFlags
& wxSIZE_AUTO_WIDTH
)
473 if (nSizeFlags
& wxSIZE_AUTO_HEIGHT
)
474 nHeight
= nTotHeight
;
476 nHeight
= nHeightOld
;
479 wxWindowOS2
* pParent
= (wxWindowOS2
*)GetParent();
483 int nOS2Height
= GetOS2ParentHeight(pParent
);
485 nYy
= nOS2Height
- (nYy
+ nHeight
);
486 nYOffset
= nYy
+ nHeight
;
492 ::WinQueryWindowRect(HWND_DESKTOP
, &vRect
);
493 nYy
= vRect
.yTop
- (nYy
+ nHeight
);
495 ::WinSetWindowPos( GetHwnd()
501 ,SWP_ZORDER
| SWP_SIZE
| SWP_MOVE
| SWP_SHOW
505 // Now position all the buttons: the current button will be put at
506 // wxPoint(x_offset, y_offset) and the new row/column will start at
507 // startX/startY. The size of all buttons will be the same wxSize(maxWidth,
508 // maxHeight) except for the buttons in the last column which should extend
509 // to the right border of radiobox and thus can be wider than this.
511 // Also, remember that wxRA_SPECIFY_COLS means that we arrange buttons in
512 // left to right order and m_majorDim is the number of columns while
513 // wxRA_SPECIFY_ROWS means that the buttons are arranged top to bottom and
514 // m_majorDim is the number of rows.
517 nYOffset
-= (nMaxHeight
+ ((3*nCy1
)/2));
522 for (int i
= 0; i
< m_nNoItems
; i
++)
525 // The last button in the row may be wider than the other ones as the
526 // radiobox may be wider than the sum of the button widths (as it
527 // happens, for example, when the radiobox label is very long)
529 bool bIsLastInTheRow
;
531 if (m_windowStyle
& wxRA_SPECIFY_COLS
)
534 // Item is the last in its row if it is a multiple of the number of
535 // columns or if it is just the last item
539 bIsLastInTheRow
= ((n
% m_nMajorDim
) == 0) || (n
== m_nNoItems
);
541 else // winRA_SPECIFY_ROWS
544 // Item is the last in the row if it is in the last columns
546 bIsLastInTheRow
= i
>= (m_nNoItems
/m_nMajorDim
) * m_nMajorDim
;
550 // Is this the start of new row/column?
552 if (i
&& (i
% m_nMajorDim
== 0))
554 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
558 // Start of new column
561 nXOffset
+= nMaxWidth
+ nCx1
;
563 else // start of new row
566 nYOffset
-= nMaxHeight
;
567 if (m_pnRadioWidth
[0] > 0L)
577 // Make the button go to the end of radio box
579 nWidthBtn
= nStartX
+ nWidth
- nXOffset
- (2 * nCx1
);
580 if (nWidthBtn
< nMaxWidth
)
581 nWidthBtn
= nMaxWidth
;
586 // Normal button, always of the same size
588 nWidthBtn
= nMaxWidth
;
592 // Make all buttons of the same, maximal size - like this they
593 // cover the radiobox entirely and the radiobox tooltips are always
594 // shown (otherwise they are not when the mouse pointer is in the
595 // radiobox part not beinting to any radiobutton)
597 ::WinSetWindowPos( (HWND
)m_ahRadioButtons
[i
]
603 ,SWP_ZORDER
| SWP_SIZE
| SWP_MOVE
| SWP_SHOW
606 // Where do we put the next button?
608 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
613 nYOffset
-= nMaxHeight
;
614 if (m_pnRadioWidth
[0] > 0)
620 // To the right of this one
622 nXOffset
+= nWidthBtn
+ nCx1
;
625 } // end of wxRadioBox::DoSetSize
627 void wxRadioBox::Enable(
632 wxCHECK_RET( nItem
>= 0 && nItem
< m_nNoItems
,
633 wxT("invalid item in wxRadioBox::Enable()") );
635 ::WinEnableWindow((HWND
) m_ahRadioButtons
[nItem
], bEnable
);
636 } // end of wxRadioBox::Enable
638 bool wxRadioBox::Enable(
642 if ( !wxControl::Enable(bEnable
) )
644 for (int i
= 0; i
< m_nNoItems
; i
++)
645 ::WinEnableWindow((HWND
)m_ahRadioButtons
[i
], bEnable
);
647 } // end of wxRadioBox::Enable
649 int wxRadioBox::FindString(
650 const wxString
& rsStr
653 for (int i
= 0; i
< m_nNoItems
; i
++)
655 if (rsStr
== wxGetWindowText(m_ahRadioButtons
[i
]) )
659 } // end of wxRadioBox::FindString
661 int wxRadioBox::GetColumnCount() const
664 } // end of wxRadioBox::GetColumnCount
666 int wxRadioBox::GetCount() const
669 } // end of wxRadioBox::GetCount
671 wxString
wxRadioBox::GetLabel(
675 wxCHECK_MSG(nItem
>= 0 && nItem
< m_nNoItems
, wxT(""), wxT("invalid radiobox index") );
677 return wxGetWindowText(m_ahRadioButtons
[nItem
]);
678 } // end of wxRadioBox::GetLabel
680 wxSize
wxRadioBox::GetMaxButtonSize() const
685 for (int i
= 0 ; i
< m_nNoItems
; i
++)
690 if (m_pnRadioWidth
[i
] < 0L)
692 GetTextExtent( wxGetWindowText(m_ahRadioButtons
[i
])
698 // Adjust the size to take into account the radio box itself
699 // FIXME this is totally bogus!
701 nWidth
+= RADIO_SIZE
;
707 nWidth
= m_pnRadioWidth
[i
];
708 nHeight
= m_pnRadioHeight
[i
];
710 if (nWidthMax
< nWidth
)
712 if (nHeightMax
< nHeight
)
713 nHeightMax
= nHeight
;
715 return(wxSize( nWidthMax
719 } // end of wxRadioBox::GetMaxButtonSize
721 int wxRadioBox::GetNumHor() const
723 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
725 return (m_nNoItems
+ m_nMajorDim
- 1)/m_nMajorDim
;
731 } // end of wxRadioBox::GetNumHor
733 int wxRadioBox::GetNumVer() const
735 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
741 return (m_nNoItems
+ m_nMajorDim
- 1)/m_nMajorDim
;
743 } // end of wxRadioBox::GetNumVer
745 void wxRadioBox::GetPosition(
750 wxWindowOS2
* pParent
= GetParent();
751 RECT vRect
= { -1, -1, -1, -1 };;
755 for (i
= 0; i
< m_nNoItems
; i
++)
756 wxFindMaxSize( m_ahRadioButtons
[i
]
760 wxFindMaxSize( m_hWnd
765 // Since we now have the absolute screen coords, if there's a parent we
766 // must subtract its top left corner
768 vPoint
.x
= vRect
.xLeft
;
769 vPoint
.y
= vRect
.yTop
;
774 ::WinQueryWindowPos((HWND
)pParent
->GetHWND(), &vSwp
);
780 // We may be faking the client origin. So a window that's really at (0, 30)
781 // may appear (to wxWin apps) to be at (0, 0).
785 wxPoint
vPt(GetParent()->GetClientAreaOrigin());
792 } // end of wxRadioBox::GetPosition
794 int wxRadioBox::GetRowCount() const
797 } // end of wxRadioBox::GetRowCount
799 // Get single selection, for single choice list items
800 int wxRadioBox::GetSelection() const
802 return m_nSelectedButton
;
803 } // end of wxRadioBox::GetSelection
805 void wxRadioBox::GetSize(
819 wxFindMaxSize( m_hWnd
823 for (i
= 0; i
< m_nNoItems
; i
++)
824 wxFindMaxSize( m_ahRadioButtons
[i
]
828 *pnWidth
= vRect
.xRight
- vRect
.xLeft
;
829 *pnHeight
= vRect
.yBottom
- vRect
.yTop
;
830 } // end of wxRadioBox::GetSize
832 // Find string for position
833 wxString
wxRadioBox::GetString(
837 return wxGetWindowText(m_ahRadioButtons
[nNum
]);
838 } // end of wxRadioBox::GetString
840 // For single selection items only
841 wxString
wxRadioBox::GetStringSelection() const
844 int nSel
= GetSelection();
847 sResult
= GetString(nSel
);
849 } // end of wxRadioBox::GetStringSelection
851 wxSize
wxRadioBox::GetTotalButtonSize(
852 const wxSize
& rSizeBtn
862 wxGetCharSize( m_hWnd
869 nHeight
= GetNumVer() * rSizeBtn
.y
+ (2 * nCy1
);
870 nWidth
= GetNumHor() * (rSizeBtn
.x
+ nCx1
) + nCx1
;
873 // And also wide enough for its label
875 GetTextExtent( GetTitle()
879 nWidthLabel
+= RADIO_SIZE
;
880 if (nWidthLabel
> nWidth
)
881 nWidth
= nWidthLabel
;
883 return(wxSize( nWidth
887 } // end of wxRadioBox::GetTotalButtonSize
889 WXHBRUSH
wxRadioBox::OnCtlColor(
898 HPS hPS
= (HPS
)hwinDC
; // pass in a PS handle in OS/2
900 if (GetParent()->GetTransparentBackground())
901 ::GpiSetBackMix(hPS
, BM_LEAVEALONE
);
903 ::GpiSetBackMix(hPS
, BM_OVERPAINT
);
905 wxColour vColBack
= GetBackgroundColour();
907 ::GpiSetBackColor(hPS
, vColBack
.GetPixel());
908 ::GpiSetColor(hPS
, vColBack
.GetPixel());
911 wxBrush
* pBrush
= wxTheBrushList
->FindOrCreateBrush( vColBack
914 return ((WXHBRUSH
)pBrush
->GetResourceHandle());
915 } // end of wxRadioBox::OnCtlColor
917 bool wxRadioBox::OS2Command(
922 int nSelectedButton
= -1;
924 if (uCmd
== BN_CLICKED
)
930 for (int i
= 0; i
< m_nNoItems
; i
++)
932 if (wId
== wxGetWindowId(m_ahRadioButtons
[i
]))
938 if (nSelectedButton
== -1)
941 // Just ignore it - due to a hack with WM_NCHITTEST handling in our
942 // wnd proc, we can receive dummy click messages when we click near
943 // the radiobox edge (this is ugly but Julian wouldn't let me get
947 if (nSelectedButton
!= m_nSelectedButton
)
949 m_nSelectedButton
= nSelectedButton
;
950 SendNotificationEvent();
956 } // end of wxRadioBox::OS2Command
958 void wxRadioBox::SendNotificationEvent()
960 wxCommandEvent
vEvent( wxEVT_COMMAND_RADIOBOX_SELECTED
964 vEvent
.SetInt( m_nSelectedButton
);
965 vEvent
.SetString( GetString(m_nSelectedButton
) );
966 vEvent
.SetEventObject(this);
967 ProcessCommand(vEvent
);
968 } // end of wxRadioBox::SendNotificationEvent
970 void wxRadioBox::SetFocus()
974 if (m_nSelectedButton
== -1)
975 ::WinSetFocus(HWND_DESKTOP
, (HWND
)m_ahRadioButtons
[0]);
977 ::WinSetFocus(HWND_DESKTOP
, (HWND
)m_ahRadioButtons
[m_nSelectedButton
]);
979 } // end of wxRadioBox::SetFocus
981 bool wxRadioBox::SetFont(
985 if (!wxControl::SetFont(rFont
))
993 // Also set the font of our radio buttons
995 WXHFONT hFont
= wxFont(rFont
).GetResourceHandle();
997 for (int n
= 0; n
< (int)m_nNoItems
; n
++)
999 HWND hWndBtn
= (HWND
)m_ahRadioButtons
[n
];
1001 wxOS2SetFont( hWndBtn
1004 ::WinInvalidateRect(hWndBtn
, NULL
, FALSE
);
1007 } // end of wxRadioBox::SetFont
1009 void wxRadioBox::SetSelection(
1013 wxCHECK_RET( (nNum
>= 0) && (nNum
< m_nNoItems
), wxT("invalid radiobox index") );
1015 if (m_nSelectedButton
>= 0 && m_nSelectedButton
< m_nNoItems
)
1016 ::WinSendMsg((HWND
)m_ahRadioButtons
[m_nSelectedButton
], BM_SETCHECK
, (MPARAM
)0, (MPARAM
)0);
1018 ::WinSendMsg((HWND
)m_ahRadioButtons
[nNum
], BM_SETCHECK
, (MPARAM
)1, (MPARAM
)0);
1019 ::WinSetFocus(HWND_DESKTOP
, (HWND
)m_ahRadioButtons
[nNum
]);
1020 m_nSelectedButton
= nNum
;
1021 } // end of wxRadioBox::SetSelection
1023 void wxRadioBox::SetString(
1025 , const wxString
& rsLabel
1028 wxCHECK_RET( nItem
>= 0 && nItem
< m_nNoItems
, wxT("invalid radiobox index") );
1030 m_pnRadioWidth
[nItem
] = m_pnRadioHeight
[nItem
] = -1;
1031 ::WinSetWindowText((HWND
)m_ahRadioButtons
[nItem
], rsLabel
.c_str());
1032 } // end of wxRadioBox::SetString
1034 bool wxRadioBox::SetStringSelection(
1035 const wxString
& rsStr
1038 int nSel
= FindString(rsStr
);
1047 } // end of wxRadioBox::SetStringSelection
1049 bool wxRadioBox::Show(
1055 if (!wxControl::Show(bShow
))
1058 for (int i
= 0; i
< m_nNoItems
; i
++)
1060 ::WinShowWindow((HWND
)m_ahRadioButtons
[i
], (BOOL
)bShow
);
1063 } // end of wxRadioBox::Show
1065 // Show a specific button
1066 void wxRadioBox::Show(
1071 wxCHECK_RET( nItem
>= 0 && nItem
< m_nNoItems
,
1072 wxT("invalid item in wxRadioBox::Show()") );
1074 ::WinShowWindow((HWND
)m_ahRadioButtons
[nItem
], bShow
);
1075 } // end of wxRadioBox::Show
1077 void wxRadioBox::SubclassRadioButton(
1081 HWND hwndBtn
= (HWND
)hWndBtn
;
1083 fnWndProcRadioBtn
= (WXFARPROC
)::WinSubclassWindow(hWndBtn
, (PFNWP
)wxRadioBtnWndProc
);
1084 } // end of wxRadioBox::SubclassRadioButton
1086 MRESULT
wxRadioBox::WindowProc(
1092 return (wxControl::OS2WindowProc( uMsg
1096 } // end of wxRadioBox::WindowProc
1098 // ---------------------------------------------------------------------------
1099 // window proc for radio buttons
1100 // ---------------------------------------------------------------------------
1102 MRESULT
wxRadioBtnWndProc(
1113 USHORT uKeyFlags
= SHORT1FROMMP((MPARAM
)wParam
);
1115 if (!(uKeyFlags
& KC_KEYUP
)) // Key Down event
1117 if (uKeyFlags
& KC_VIRTUALKEY
)
1119 wxRadioBox
* pRadiobox
= (wxRadioBox
*)::WinQueryWindowULong( hWnd
1122 USHORT uVk
= SHORT2FROMMP((MPARAM
)lParam
);
1123 bool bProcessed
= TRUE
;
1148 // Just to suppress the compiler warning
1155 int nSelOld
= pRadiobox
->GetSelection();
1156 int nSelNew
= pRadiobox
->GetNextItem( nSelOld
1158 ,pRadiobox
->GetWindowStyleFlag()
1161 if (nSelNew
!= nSelOld
)
1163 pRadiobox
->SetSelection(nSelNew
);
1166 // Emulate the button click
1168 pRadiobox
->SendNotificationEvent();
1178 return fnWndProcRadioBtn( hWnd
1183 } // end of wxRadioBtnWndProc