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 // ---------------------------------------------------------------------------
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/private.h"
44 #if !defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__)
47 #include "wx/tooltip.h"
48 #endif // wxUSE_TOOLTIPS
50 IMPLEMENT_DYNAMIC_CLASS(wxRadioBox
, wxControl
)
60 // there are two possible ways to create the radio buttons: either as children
61 // of the radiobox or as siblings of it - allow playing with both variants for
62 // now, eventually we will choose the best one for our purposes
64 // two main problems are the keyboard navigation inside the radiobox (arrows
65 // should switch between buttons, not pass focus to the next control) and the
66 // tooltips - a tooltip is associated with the radiobox itself, not the
69 // the problems with setting this to 1:
70 // a) Alt-<mnemonic of radiobox> isn't handled properly by IsDialogMessage()
71 // because it sets focus to the next control accepting it which is not a
72 // radio button but a radiobox sibling in this case - the only solution to
73 // this would be to handle Alt-<mnemonic> ourselves
74 // b) the problems with setting radiobox colours under Win98/2K were reported
75 // but I couldn't reproduce it so I have no idea about what causes it
77 // the problems with setting this to 0:
78 // a) the tooltips are not shown for the radiobox - possible solution: make
79 // TTM_WINDOWFROMPOS handling code in msw/tooltip.cpp work (easier said than
80 // done because I don't know why it doesn't work)
81 #define RADIOBTN_PARENT_IS_RADIOBOX 0
83 // ---------------------------------------------------------------------------
85 // ---------------------------------------------------------------------------
87 // wnd proc for radio buttons
89 LRESULT APIENTRY _EXPORT
wxRadioBtnWndProc(HWND hWnd
,
94 // ---------------------------------------------------------------------------
96 // ---------------------------------------------------------------------------
98 // the pointer to standard radio button wnd proc
99 static WXFARPROC s_wndprocRadioBtn
= (WXFARPROC
)NULL
;
103 // ===========================================================================
105 // ===========================================================================
107 // ---------------------------------------------------------------------------
109 // ---------------------------------------------------------------------------
111 int wxRadioBox::GetCount() const
116 int wxRadioBox::GetColumnCount() const
121 int wxRadioBox::GetRowCount() const
126 // returns the number of rows
127 int wxRadioBox::GetNumVer() const
129 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
135 return (m_noItems
+ m_majorDim
- 1)/m_majorDim
;
139 // returns the number of columns
140 int wxRadioBox::GetNumHor() const
142 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
144 return (m_noItems
+ m_majorDim
- 1)/m_majorDim
;
152 bool wxRadioBox::MSWCommand(WXUINT cmd
, WXWORD id
)
154 if ( cmd
== BN_CLICKED
)
159 int selectedButton
= -1;
161 for ( int i
= 0; i
< m_noItems
; i
++ )
163 if ( id
== wxGetWindowId(m_radioButtons
[i
]) )
171 if ( selectedButton
== -1 )
173 // just ignore it - due to a hack with WM_NCHITTEST handling in our
174 // wnd proc, we can receive dummy click messages when we click near
175 // the radiobox edge (this is ugly but Julian wouldn't let me get
180 if ( selectedButton
!= m_selectedButton
)
182 m_selectedButton
= selectedButton
;
184 SendNotificationEvent();
186 //else: don't generate events when the selection doesn't change
195 wxRadioBox::wxRadioBox()
197 m_selectedButton
= -1;
200 m_radioButtons
= NULL
;
203 m_radioHeight
= NULL
;
206 bool wxRadioBox::Create(wxWindow
*parent
,
208 const wxString
& title
,
212 const wxString choices
[],
215 const wxValidator
& val
,
216 const wxString
& name
)
218 // initialize members
219 m_selectedButton
= -1;
222 m_majorDim
= majorDim
== 0 ? n
: majorDim
;
223 m_noRowsOrCols
= majorDim
;
225 // common initialization
226 if ( !CreateControl(parent
, id
, pos
, size
, style
, val
, name
) )
229 // create the static box
230 if ( !MSWCreateControl(wxT("BUTTON"), BS_GROUPBOX
| WS_GROUP
,
231 pos
, size
, title
, 0) )
234 // and now create the buttons
236 #if RADIOBTN_PARENT_IS_RADIOBOX
237 HWND hwndParent
= GetHwnd();
239 HWND hwndParent
= GetHwndOf(parent
);
242 // Some radio boxes test consecutive id.
243 (void)NewControlId();
244 m_radioButtons
= new WXHWND
[n
];
245 m_radioWidth
= new int[n
];
246 m_radioHeight
= new int[n
];
249 wxFont
& font
= GetFont();
252 hfont
= font
.GetResourceHandle();
255 for ( int i
= 0; i
< n
; i
++ )
258 m_radioHeight
[i
] = -1;
259 long styleBtn
= BS_AUTORADIOBUTTON
| WS_TABSTOP
| WS_CHILD
| WS_VISIBLE
;
260 if ( i
== 0 && style
== 0 )
261 styleBtn
|= WS_GROUP
;
263 long newId
= NewControlId();
265 HWND hwndBtn
= ::CreateWindow(_T("BUTTON"),
268 0, 0, 0, 0, // will be set in SetSize()
276 wxLogLastError(wxT("CreateWindow(radio btn)"));
281 m_radioButtons
[i
] = (WXHWND
)hwndBtn
;
283 SubclassRadioButton((WXHWND
)hwndBtn
);
287 ::SendMessage(hwndBtn
, WM_SETFONT
, (WPARAM
)hfont
, 0L);
290 m_subControls
.Add(newId
);
293 // Create a dummy radio control to end the group.
294 (void)::CreateWindow(_T("BUTTON"),
296 WS_GROUP
| BS_AUTORADIOBUTTON
| WS_CHILD
,
297 0, 0, 0, 0, hwndParent
,
298 (HMENU
)NewControlId(), wxGetInstance(), NULL
);
302 SetSize(pos
.x
, pos
.y
, size
.x
, size
.y
);
307 wxRadioBox::~wxRadioBox()
309 m_isBeingDeleted
= TRUE
;
314 for (i
= 0; i
< m_noItems
; i
++)
315 ::DestroyWindow((HWND
)m_radioButtons
[i
]);
316 delete[] m_radioButtons
;
320 delete[] m_radioWidth
;
322 delete[] m_radioHeight
;
326 void wxRadioBox::SetString(int item
, const wxString
& label
)
328 wxCHECK_RET( item
>= 0 && item
< m_noItems
, wxT("invalid radiobox index") );
330 m_radioWidth
[item
] = m_radioHeight
[item
] = -1;
331 SetWindowText((HWND
)m_radioButtons
[item
], label
.c_str());
334 void wxRadioBox::SetSelection(int N
)
336 wxCHECK_RET( (N
>= 0) && (N
< m_noItems
), wxT("invalid radiobox index") );
338 // Following necessary for Win32s, because Win32s translate BM_SETCHECK
339 if (m_selectedButton
>= 0 && m_selectedButton
< m_noItems
)
340 ::SendMessage((HWND
) m_radioButtons
[m_selectedButton
], BM_SETCHECK
, 0, 0L);
342 ::SendMessage((HWND
)m_radioButtons
[N
], BM_SETCHECK
, 1, 0L);
344 m_selectedButton
= N
;
347 // Get single selection, for single choice list items
348 int wxRadioBox::GetSelection() const
350 return m_selectedButton
;
353 // Find string for position
354 wxString
wxRadioBox::GetString(int item
) const
356 wxCHECK_MSG( item
>= 0 && item
< m_noItems
, wxEmptyString
,
357 wxT("invalid radiobox index") );
359 return wxGetWindowText(m_radioButtons
[item
]);
362 // ----------------------------------------------------------------------------
364 // ----------------------------------------------------------------------------
366 wxSize
wxRadioBox::GetMaxButtonSize() const
368 // calculate the max button size
371 for ( int i
= 0 ; i
< m_noItems
; i
++ )
374 if ( m_radioWidth
[i
] < 0 )
376 GetTextExtent(wxGetWindowText(m_radioButtons
[i
]), &width
, &height
);
378 // adjust the size to take into account the radio box itself
379 // FIXME this is totally bogus!
386 width
= m_radioWidth
[i
];
387 height
= m_radioHeight
[i
];
390 if ( widthMax
< width
)
392 if ( heightMax
< height
)
396 return wxSize(widthMax
, heightMax
);
399 wxSize
wxRadioBox::GetTotalButtonSize(const wxSize
& sizeBtn
) const
401 // the radiobox should be big enough for its buttons
403 wxGetCharSize(m_hWnd
, &cx1
, &cy1
, &GetFont());
405 int extraHeight
= cy1
;
407 /* We'll assume the adjustments below are OK for Win 3.1 too
408 #if defined(CTL3D) && !CTL3D
409 // Requires a bigger group box in plain Windows
415 int height
= GetNumVer() * sizeBtn
.y
+ cy1
/2 + extraHeight
;
416 int width
= GetNumHor() * (sizeBtn
.x
+ cx1
) + cx1
;
418 // Add extra space under the label, if it exists.
419 if (!wxControl::GetLabel().IsEmpty())
422 // and also wide enough for its label
424 GetTextExtent(GetTitle(), &widthLabel
, NULL
);
425 widthLabel
+= RADIO_SIZE
; // FIXME this is bogus too
426 if ( widthLabel
> width
)
429 return wxSize(width
, height
);
432 wxSize
wxRadioBox::DoGetBestSize() const
434 return GetTotalButtonSize(GetMaxButtonSize());
437 // Restored old code.
438 void wxRadioBox::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
440 int currentX
, currentY
;
441 GetPosition(¤tX
, ¤tY
);
442 int widthOld
, heightOld
;
443 GetSize(&widthOld
, &heightOld
);
448 if (x
== -1 && !(sizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
450 if (y
== -1 && !(sizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
453 #if RADIOBTN_PARENT_IS_RADIOBOX
462 wxGetCharSize(m_hWnd
, &cx1
, &cy1
, & GetFont());
464 // Attempt to have a look coherent with other platforms: We compute the
465 // biggest toggle dim, then we align all items according this value.
466 wxSize maxSize
= GetMaxButtonSize();
467 int maxWidth
= maxSize
.x
,
468 maxHeight
= maxSize
.y
;
470 wxSize totSize
= GetTotalButtonSize(maxSize
);
471 int totWidth
= totSize
.x
,
472 totHeight
= totSize
.y
;
474 // only change our width/height if asked for
477 if ( sizeFlags
& wxSIZE_AUTO_WIDTH
)
485 if ( sizeFlags
& wxSIZE_AUTO_HEIGHT
)
491 ::MoveWindow(GetHwnd(), xx
, yy
, width
, height
, TRUE
);
493 // Now position all the buttons: the current button will be put at
494 // wxPoint(x_offset, y_offset) and the new row/column will start at
495 // startX/startY. The size of all buttons will be the same wxSize(maxWidth,
496 // maxHeight) except for the buttons in the last column which should extend
497 // to the right border of radiobox and thus can be wider than this.
499 // Also, remember that wxRA_SPECIFY_COLS means that we arrange buttons in
500 // left to right order and m_majorDim is the number of columns while
501 // wxRA_SPECIFY_ROWS means that the buttons are arranged top to bottom and
502 // m_majorDim is the number of rows.
507 // Add extra space under the label, if it exists.
508 if (!wxControl::GetLabel().IsEmpty())
511 int startX
= x_offset
;
512 int startY
= y_offset
;
514 for ( int i
= 0; i
< m_noItems
; i
++ )
516 // the last button in the row may be wider than the other ones as the
517 // radiobox may be wider than the sum of the button widths (as it
518 // happens, for example, when the radiobox label is very long)
520 if ( m_windowStyle
& wxRA_SPECIFY_COLS
)
522 // item is the last in its row if it is a multiple of the number of
523 // columns or if it is just the last item
525 isLastInTheRow
= ((n
% m_majorDim
) == 0) || (n
== m_noItems
);
527 else // wxRA_SPECIFY_ROWS
529 // item is the last in the row if it is in the last columns
530 isLastInTheRow
= i
>= (m_noItems
/m_majorDim
)*m_majorDim
;
533 // is this the start of new row/column?
534 if ( i
&& (i
% m_majorDim
== 0) )
536 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
538 // start of new column
540 x_offset
+= maxWidth
+ cx1
;
542 else // start of new row
545 y_offset
+= maxHeight
;
546 if (m_radioWidth
[0]>0)
552 if ( isLastInTheRow
)
554 // make the button go to the end of radio box
555 widthBtn
= startX
+ width
- x_offset
- 2*cx1
;
556 if ( widthBtn
< maxWidth
)
561 // normal button, always of the same size
565 // VZ: make all buttons of the same, maximal size - like this they
566 // cover the radiobox entirely and the radiobox tooltips are always
567 // shown (otherwise they are not when the mouse pointer is in the
568 // radiobox part not belonging to any radiobutton)
569 ::MoveWindow((HWND
)m_radioButtons
[i
],
570 x_offset
, y_offset
, widthBtn
, maxHeight
,
573 // where do we put the next button?
574 if ( m_windowStyle
& wxRA_SPECIFY_ROWS
)
577 y_offset
+= maxHeight
;
578 if (m_radioWidth
[0]>0)
583 // to the right of this one
584 x_offset
+= widthBtn
+ cx1
;
589 void wxRadioBox::GetSize(int *width
, int *height
) const
592 rect
.left
= -1; rect
.right
= -1; rect
.top
= -1; rect
.bottom
= -1;
595 wxFindMaxSize(m_hWnd
, &rect
);
598 for (i
= 0; i
< m_noItems
; i
++)
599 wxFindMaxSize(m_radioButtons
[i
], &rect
);
601 *width
= rect
.right
- rect
.left
;
602 *height
= rect
.bottom
- rect
.top
;
605 void wxRadioBox::GetPosition(int *x
, int *y
) const
607 wxWindow
*parent
= GetParent();
608 RECT rect
= { -1, -1, -1, -1 };
611 for (i
= 0; i
< m_noItems
; i
++)
612 wxFindMaxSize(m_radioButtons
[i
], &rect
);
615 wxFindMaxSize(m_hWnd
, &rect
);
617 // Since we now have the absolute screen coords, if there's a parent we
618 // must subtract its top left corner
624 ::ScreenToClient((HWND
) parent
->GetHWND(), &point
);
627 // We may be faking the client origin. So a window that's really at (0, 30)
628 // may appear (to wxWin apps) to be at (0, 0).
631 wxPoint
pt(GetParent()->GetClientAreaOrigin());
640 void wxRadioBox::SetFocus()
644 ::SetFocus((HWND
)m_radioButtons
[m_selectedButton
== -1
646 : m_selectedButton
]);
651 bool wxRadioBox::Show(bool show
)
653 if ( !wxControl::Show(show
) )
656 int nCmdShow
= show
? SW_SHOW
: SW_HIDE
;
657 for ( int i
= 0; i
< m_noItems
; i
++ )
659 ::ShowWindow((HWND
)m_radioButtons
[i
], nCmdShow
);
665 // Enable a specific button
666 void wxRadioBox::Enable(int item
, bool enable
)
668 wxCHECK_RET( item
>= 0 && item
< m_noItems
,
669 wxT("invalid item in wxRadioBox::Enable()") );
671 ::EnableWindow((HWND
) m_radioButtons
[item
], enable
);
674 // Enable all controls
675 bool wxRadioBox::Enable(bool enable
)
677 if ( !wxControl::Enable(enable
) )
680 for (int i
= 0; i
< m_noItems
; i
++)
681 ::EnableWindow((HWND
) m_radioButtons
[i
], enable
);
686 // Show a specific button
687 void wxRadioBox::Show(int item
, bool show
)
689 wxCHECK_RET( item
>= 0 && item
< m_noItems
,
690 wxT("invalid item in wxRadioBox::Show()") );
692 ::ShowWindow((HWND
)m_radioButtons
[item
], show
? SW_SHOW
: SW_HIDE
);
695 bool wxRadioBox::ContainsHWND(WXHWND hWnd
) const
697 size_t count
= GetCount();
698 for ( size_t i
= 0; i
< count
; i
++ )
700 if ( GetRadioButtons()[i
] == hWnd
)
707 void wxRadioBox::Command(wxCommandEvent
& event
)
709 SetSelection (event
.m_commandInt
);
711 ProcessCommand (event
);
714 // NB: if this code is changed, wxGetWindowForHWND() which relies on having the
715 // radiobox pointer in GWL_USERDATA for radio buttons must be updated too!
716 void wxRadioBox::SubclassRadioButton(WXHWND hWndBtn
)
718 HWND hwndBtn
= (HWND
)hWndBtn
;
720 if ( !s_wndprocRadioBtn
)
721 s_wndprocRadioBtn
= (WXFARPROC
)::GetWindowLong(hwndBtn
, GWL_WNDPROC
);
723 ::SetWindowLong(hwndBtn
, GWL_WNDPROC
, (long)wxRadioBtnWndProc
);
724 ::SetWindowLong(hwndBtn
, GWL_USERDATA
, (long)this);
727 void wxRadioBox::SendNotificationEvent()
729 wxCommandEvent
event(wxEVT_COMMAND_RADIOBOX_SELECTED
, m_windowId
);
730 event
.SetInt( m_selectedButton
);
731 event
.SetString( GetString(m_selectedButton
) );
732 event
.SetEventObject( this );
733 ProcessCommand(event
);
736 bool wxRadioBox::SetFont(const wxFont
& font
)
738 if ( !wxControl::SetFont(font
) )
744 // also set the font of our radio buttons
745 WXHFONT hfont
= wxFont(font
).GetResourceHandle();
746 for ( int n
= 0; n
< m_noItems
; n
++ )
748 HWND hwndBtn
= (HWND
)m_radioButtons
[n
];
749 ::SendMessage(hwndBtn
, WM_SETFONT
, (WPARAM
)hfont
, 0L);
751 // otherwise the buttons are not redrawn correctly
752 ::InvalidateRect(hwndBtn
, NULL
, FALSE
/* don't erase bg */);
758 // ----------------------------------------------------------------------------
760 // ----------------------------------------------------------------------------
762 long wxRadioBox::MSWWindowProc(WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
)
767 case WM_CTLCOLORSTATIC
:
768 // set the colour of the radio buttons to be the same as ours
770 HDC hdc
= (HDC
)wParam
;
772 const wxColour
& colBack
= GetBackgroundColour();
773 ::SetBkColor(hdc
, wxColourToRGB(colBack
));
774 ::SetTextColor(hdc
, wxColourToRGB(GetForegroundColour()));
776 wxBrush
*brush
= wxTheBrushList
->FindOrCreateBrush(colBack
, wxSOLID
);
778 return (WXHBRUSH
)brush
->GetResourceHandle();
782 // VZ: this code breaks radiobox redrawing under Windows XP, don't use
783 // it. If you need to get messages from the static controls,
784 // create them as a child of another (non static) window
786 // This is required for the radiobox to be sensitive to mouse input,
787 // e.g. for Dialog Editor.
790 int xPos
= LOWORD(lParam
); // horizontal position of cursor
791 int yPos
= HIWORD(lParam
); // vertical position of cursor
793 ScreenToClient(&xPos
, &yPos
);
795 // Make sure you can drag by the top of the groupbox, but let
796 // other (enclosed) controls get mouse events also
798 return (long)HTCLIENT
;
804 return wxControl::MSWWindowProc(nMsg
, wParam
, lParam
);
807 WXHBRUSH
wxRadioBox::OnCtlColor(WXHDC pDC
, WXHWND
WXUNUSED(pWnd
), WXUINT
WXUNUSED(nCtlColor
),
813 WXUINT
WXUNUSED(message
),
814 WXWPARAM
WXUNUSED(wParam
),
815 WXLPARAM
WXUNUSED(lParam
)
822 HBRUSH hbrush
= Ctl3dCtlColorEx(message
, wParam
, lParam
);
823 return (WXHBRUSH
) hbrush
;
825 #endif // wxUSE_CTL3D
828 wxColour colBack
= GetBackgroundColour();
831 colBack
= wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE
);
833 ::SetBkColor(hdc
, wxColourToRGB(colBack
));
834 ::SetTextColor(hdc
, wxColourToRGB(GetForegroundColour()));
836 wxBrush
*brush
= wxTheBrushList
->FindOrCreateBrush(colBack
, wxSOLID
);
838 return (WXHBRUSH
)brush
->GetResourceHandle();
842 // ---------------------------------------------------------------------------
843 // window proc for radio buttons
844 // ---------------------------------------------------------------------------
848 LRESULT APIENTRY _EXPORT
wxRadioBtnWndProc(HWND hwnd
,
856 // we must tell IsDialogMessage()/our kbd processing code that we
857 // want to process arrows ourselves because neither of them is
858 // smart enough to handle arrows properly for us
860 long lDlgCode
= ::CallWindowProc(CASTWNDPROC s_wndprocRadioBtn
, hwnd
,
861 message
, wParam
, lParam
);
863 return lDlgCode
| DLGC_WANTARROWS
;
869 NMHDR
* hdr
= (NMHDR
*)lParam
;
870 if ( hdr
->code
== TTN_NEEDTEXT
)
872 wxRadioBox
*radiobox
= (wxRadioBox
*)
873 ::GetWindowLong(hwnd
, GWL_USERDATA
);
875 wxCHECK_MSG( radiobox
, 0,
876 wxT("radio button without radio box?") );
878 wxToolTip
*tooltip
= radiobox
->GetToolTip();
881 TOOLTIPTEXT
*ttt
= (TOOLTIPTEXT
*)lParam
;
882 ttt
->lpszText
= (wxChar
*)tooltip
->GetTip().c_str();
890 #endif // wxUSE_TOOLTIPS
894 wxRadioBox
*radiobox
= (wxRadioBox
*)
895 ::GetWindowLong(hwnd
, GWL_USERDATA
);
897 wxCHECK_MSG( radiobox
, 0, wxT("radio button without radio box?") );
899 bool processed
= TRUE
;
923 // just to suppress the compiler warning
929 int selOld
= radiobox
->GetSelection();
930 int selNew
= radiobox
->GetNextItem
934 radiobox
->GetWindowStyle()
937 if ( selNew
!= selOld
)
939 radiobox
->SetSelection(selNew
);
940 radiobox
->SetFocus();
942 // emulate the button click
943 radiobox
->SendNotificationEvent();
954 wxRadioBox
*radiobox
= (wxRadioBox
*)
955 ::GetWindowLong(hwnd
, GWL_USERDATA
);
957 wxCHECK_MSG( radiobox
, 0, wxT("radio button without radio box?") );
959 bool processed
= TRUE
;
961 // HELPINFO doesn't seem to be supported on WinCE.
963 HELPINFO
* info
= (HELPINFO
*) lParam
;
964 // Don't yet process menu help events, just windows
965 if (info
->iContextType
== HELPINFO_WINDOW
)
968 wxWindow
* subjectOfHelp
= radiobox
;
969 bool eventProcessed
= FALSE
;
970 while (subjectOfHelp
&& !eventProcessed
)
972 wxHelpEvent
helpEvent(wxEVT_HELP
, subjectOfHelp
->GetId(),
976 wxPoint(info
->MousePos
.x
, info
->MousePos
.y
)
978 ) ; // info->iCtrlId);
979 helpEvent
.SetEventObject(radiobox
);
980 eventProcessed
= radiobox
->GetEventHandler()->ProcessEvent(helpEvent
);
982 // Go up the window hierarchy until the event is handled (or not)
983 subjectOfHelp
= subjectOfHelp
->GetParent();
985 processed
= eventProcessed
;
988 else if (info
->iContextType
== HELPINFO_MENUITEM
)
990 wxHelpEvent
helpEvent(wxEVT_HELP
, info
->iCtrlId
) ;
991 helpEvent
.SetEventObject(radiobox
);
992 processed
= radiobox
->GetEventHandler()->ProcessEvent(helpEvent
);
1005 return ::CallWindowProc(CASTWNDPROC s_wndprocRadioBtn
, hwnd
, message
, wParam
, lParam
);
1010 #endif // wxUSE_RADIOBOX