1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/radiobox.cpp
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
39 MRESULT EXPENTRY
wxRadioBoxWndProc( HWND hWnd
45 // ---------------------------------------------------------------------------
47 // ---------------------------------------------------------------------------
49 // the pointer to standard radio button wnd proc
50 extern void wxAssociateWinWithHandle( HWND hWnd
53 static WXFARPROC fnWndProcRadioBtn
= NULL
;
54 static WXFARPROC fnWndProcRadioBox
= NULL
;
56 // ===========================================================================
58 // ===========================================================================
60 // ---------------------------------------------------------------------------
62 // ---------------------------------------------------------------------------
65 wxRadioBox::wxRadioBox()
67 m_nSelectedButton
= -1;
70 m_ahRadioButtons
= NULL
;
71 m_pnRadioWidth
= NULL
;
72 m_pnRadioHeight
= NULL
;
73 } // end of wxRadioBox::wxRadioBox
75 wxRadioBox::~wxRadioBox()
77 m_isBeingDeleted
= true;
82 for (i
= 0; i
< m_nNoItems
; i
++)
83 ::WinDestroyWindow((HWND
)m_ahRadioButtons
[i
]);
84 delete[] m_ahRadioButtons
;
87 delete[] m_pnRadioWidth
;
89 delete[] m_pnRadioHeight
;
90 } // end of wxRadioBox::~wxRadioBox
92 void wxRadioBox::AdjustButtons( int nX
,
96 int WXUNUSED(nSizeFlags
) )
100 int nYOffset
= nY
+ nHeight
;
107 wxFont vFont
= GetFont();
109 wxGetCharSize( m_hWnd
114 vMaxSize
= GetMaxButtonSize();
115 nMaxWidth
= vMaxSize
.x
;
116 nMaxHeight
= vMaxSize
.y
;
119 nYOffset
-= (nMaxHeight
+ ((3*nCy1
)/2));
124 for (int i
= 0; i
< m_nNoItems
; i
++)
127 // The last button in the row may be wider than the other ones as the
128 // radiobox may be wider than the sum of the button widths (as it
129 // happens, for example, when the radiobox label is very long)
131 bool bIsLastInTheRow
;
133 if (m_windowStyle
& wxRA_SPECIFY_COLS
)
136 // Item is the last in its row if it is a multiple of the number of
137 // columns or if it is just the last item
141 bIsLastInTheRow
= ((n
% GetMajorDim()) == 0) || (n
== m_nNoItems
);
143 else // winRA_SPECIFY_ROWS
146 // Item is the last in the row if it is in the last columns
148 bIsLastInTheRow
= i
>= (m_nNoItems
/GetMajorDim()) * GetMajorDim();
152 // Is this the start of new row/column?
154 if (i
&& (i
% GetMajorDim() == 0))
156 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
160 // Start of new column
163 nXOffset
+= nMaxWidth
+ nCx1
;
165 else // start of new row
168 nYOffset
-= nMaxHeight
;
169 if (m_pnRadioWidth
[0] > 0L)
179 // Make the button go to the end of radio box
181 nWidthBtn
= nStartX
+ nWidth
- nXOffset
- (2 * nCx1
);
182 if (nWidthBtn
< nMaxWidth
)
183 nWidthBtn
= nMaxWidth
;
188 // Normal button, always of the same size
190 nWidthBtn
= nMaxWidth
;
194 // Make all buttons of the same, maximal size - like this they
195 // cover the radiobox entirely and the radiobox tooltips are always
196 // shown (otherwise they are not when the mouse pointer is in the
197 // radiobox part not belonging to any radiobutton)
199 ::WinSetWindowPos( (HWND
)m_ahRadioButtons
[i
]
205 ,SWP_ZORDER
| SWP_SIZE
| SWP_MOVE
| SWP_SHOW
208 // Where do we put the next button?
210 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
215 nYOffset
-= nMaxHeight
;
216 if (m_pnRadioWidth
[0] > 0)
222 // To the right of this one
224 nXOffset
+= nWidthBtn
+ nCx1
;
227 } // end of wxRadioBox::AdjustButtons
229 void wxRadioBox::Command (
230 wxCommandEvent
& rEvent
233 SetSelection (rEvent
.GetInt());
234 ProcessCommand(rEvent
);
235 } // end of wxRadioBox::Command
237 bool wxRadioBox::ContainsHWND(
241 size_t nCount
= GetCount();
244 for (i
= 0; i
< nCount
; i
++)
246 if (GetRadioButtons()[i
] == hWnd
)
250 } // end of wxRadioBox::ContainsHWND
252 bool wxRadioBox::Create(
255 , const wxString
& rsTitle
256 , const wxPoint
& rPos
257 , const wxSize
& rSize
258 , const wxArrayString
& asChoices
261 , const wxValidator
& rVal
262 , const wxString
& rsName
265 wxCArrayString
chs(asChoices
);
267 return Create(pParent
, vId
, rsTitle
, rPos
, rSize
, chs
.GetCount(),
268 chs
.GetStrings(), nMajorDim
, lStyle
, rVal
, rsName
);
271 bool wxRadioBox::Create(
274 , const wxString
& rsTitle
275 , const wxPoint
& rPos
276 , const wxSize
& rSize
278 , const wxString asChoices
[]
281 , const wxValidator
& rVal
282 , const wxString
& rsName
288 vColour
.Set(wxString(wxT("BLACK")));
289 m_backgroundColour
= pParent
->GetBackgroundColour();
290 m_nSelectedButton
= -1;
294 // Common initialization
296 if (!CreateControl( pParent
305 if (!OS2CreateControl( wxT("STATIC")
313 wxAssociateWinWithHandle(m_hWnd
, this);
316 // Now we can set m_nNoItems and let SetMajorDim set m_numCols/m_numRows
319 SetMajorDim(nMajorDim
== 0 ? nNum
: nMajorDim
, lStyle
);
320 m_nNoRowsOrCols
= nMajorDim
;
323 // Some radio boxes test consecutive id.
325 (void)NewControlId();
326 m_ahRadioButtons
= new WXHWND
[nNum
];
327 m_pnRadioWidth
= new int[nNum
];
328 m_pnRadioHeight
= new int[nNum
];
330 for (int i
= 0; i
< nNum
; i
++)
332 m_pnRadioWidth
[i
] = m_pnRadioHeight
[i
] = -1;
334 long lStyleBtn
= BS_AUTORADIOBUTTON
| WS_TABSTOP
| WS_VISIBLE
;
335 int nNewId
= NewControlId();
338 lStyleBtn
|= WS_GROUP
;
340 HWND hWndBtn
= (WXHWND
)::WinCreateWindow ( GetHwndOf(pParent
)
342 ,::wxPMTextToLabel(asChoices
[i
])
351 lColor
= (LONG
)vColour
.GetPixel();
352 ::WinSetPresParam( hWndBtn
357 lColor
= (LONG
)m_backgroundColour
.GetPixel();
359 ::WinSetPresParam( hWndBtn
368 m_ahRadioButtons
[i
] = (WXHWND
)hWndBtn
;
369 SubclassRadioButton((WXHWND
)hWndBtn
);
370 wxAssociateWinWithHandle(hWndBtn
, this);
371 wxOS2SetFont( hWndBtn
374 ::WinSetWindowULong(hWndBtn
, QWL_USER
, (ULONG
)this);
375 m_aSubControls
.Add(nNewId
);
379 // Create a dummy control to end the group.
381 (void)::WinCreateWindow ( GetHwndOf(pParent
),
388 (HMENU
)NewControlId(),
392 SetFont(*wxSMALL_FONT
);
393 fnWndProcRadioBox
= (WXFARPROC
)::WinSubclassWindow( GetHwnd()
394 ,(PFNWP
)wxRadioBoxWndProc
396 ::WinSetWindowULong(GetHwnd(), QWL_USER
, (ULONG
)this);
397 lColor
= (LONG
)vColour
.GetPixel();
398 ::WinSetPresParam( m_hWnd
404 lColor
= (LONG
)m_backgroundColour
.GetPixel();
405 ::WinSetPresParam( m_hWnd
419 } // end of wxRadioBox::Create
421 wxSize
wxRadioBox::DoGetBestSize() const
423 return (GetTotalButtonSize(GetMaxButtonSize()));
424 } // end of WinGuiBase_CRadioBox::DoGetBestSize
426 void wxRadioBox::DoSetSize(
444 wxSize vMaxSize
= GetMaxButtonSize();
452 wxFont vFont
= GetFont();
454 m_nSizeFlags
= nSizeFlags
;
455 GetPosition( &nCurrentX
462 if (nX
== wxDefaultCoord
&& !(nSizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
464 if (nY
== wxDefaultCoord
&& !(nSizeFlags
& wxSIZE_ALLOW_MINUS_ONE
))
471 wxGetCharSize( m_hWnd
478 // Attempt to have a look coherent with other platforms: We compute the
479 // biggest toggle dim, then we align all items according this value.
481 vMaxSize
= GetMaxButtonSize();
482 nMaxWidth
= vMaxSize
.x
;
483 nMaxHeight
= vMaxSize
.y
;
485 vTotSize
= GetTotalButtonSize(vMaxSize
);
486 nTotWidth
= vTotSize
.x
;
487 nTotHeight
= vTotSize
.y
;
490 // Only change our width/height if asked for
494 if (nSizeFlags
& wxSIZE_AUTO_WIDTH
)
502 if (nSizeFlags
& wxSIZE_AUTO_HEIGHT
)
503 nHeight
= nTotHeight
;
505 nHeight
= nHeightOld
;
508 wxWindowOS2
* pParent
= (wxWindowOS2
*)GetParent();
512 int nOS2Height
= GetOS2ParentHeight(pParent
);
514 nYy
= nOS2Height
- (nYy
+ nHeight
);
515 nYOffset
= nYy
+ nHeight
;
521 ::WinQueryWindowRect(HWND_DESKTOP
, &vRect
);
522 nYy
= vRect
.yTop
- (nYy
+ nHeight
);
524 ::WinSetWindowPos( GetHwnd()
530 ,SWP_ZORDER
| SWP_SIZE
| SWP_MOVE
| SWP_SHOW
534 // Now position all the buttons: the current button will be put at
535 // wxPoint(x_offset, y_offset) and the new row/column will start at
536 // startX/startY. The size of all buttons will be the same wxSize(maxWidth,
537 // maxHeight) except for the buttons in the last column which should extend
538 // to the right border of radiobox and thus can be wider than this.
540 // Also, remember that wxRA_SPECIFY_COLS means that we arrange buttons in
541 // left to right order and m_majorDim is the number of columns while
542 // wxRA_SPECIFY_ROWS means that the buttons are arranged top to bottom and
543 // m_majorDim is the number of rows.
546 nYOffset
-= (nMaxHeight
+ ((3*nCy1
)/2));
551 for (int i
= 0; i
< m_nNoItems
; i
++)
554 // The last button in the row may be wider than the other ones as the
555 // radiobox may be wider than the sum of the button widths (as it
556 // happens, for example, when the radiobox label is very long)
558 bool bIsLastInTheRow
;
560 if (m_windowStyle
& wxRA_SPECIFY_COLS
)
563 // Item is the last in its row if it is a multiple of the number of
564 // columns or if it is just the last item
568 bIsLastInTheRow
= ((n
% GetMajorDim()) == 0) || (n
== m_nNoItems
);
570 else // winRA_SPECIFY_ROWS
573 // Item is the last in the row if it is in the last columns
575 bIsLastInTheRow
= i
>= (m_nNoItems
/GetMajorDim()) * GetMajorDim();
579 // Is this the start of new row/column?
581 if (i
&& (i
% GetMajorDim() == 0))
583 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
587 // Start of new column
590 nXOffset
+= nMaxWidth
+ nCx1
;
592 else // start of new row
595 nYOffset
-= nMaxHeight
;
596 if (m_pnRadioWidth
[0] > 0L)
606 // Make the button go to the end of radio box
608 nWidthBtn
= nStartX
+ nWidth
- nXOffset
- (2 * nCx1
);
609 if (nWidthBtn
< nMaxWidth
)
610 nWidthBtn
= nMaxWidth
;
615 // Normal button, always of the same size
617 nWidthBtn
= nMaxWidth
;
621 // Make all buttons of the same, maximal size - like this they
622 // cover the radiobox entirely and the radiobox tooltips are always
623 // shown (otherwise they are not when the mouse pointer is in the
624 // radiobox part not belonging to any radiobutton)
626 ::WinSetWindowPos( (HWND
)m_ahRadioButtons
[i
]
632 ,SWP_ZORDER
| SWP_SIZE
| SWP_MOVE
| SWP_SHOW
635 // Where do we put the next button?
637 if (m_windowStyle
& wxRA_SPECIFY_ROWS
)
642 nYOffset
-= nMaxHeight
;
643 if (m_pnRadioWidth
[0] > 0)
649 // To the right of this one
651 nXOffset
+= nWidthBtn
+ nCx1
;
654 } // end of wxRadioBox::DoSetSize
656 bool wxRadioBox::Enable(int nItem
, bool bEnable
)
658 wxCHECK_MSG( IsValid(nItem
), false,
659 wxT("invalid item in wxRadioBox::Enable()") );
661 ::WinEnableWindow((HWND
) m_ahRadioButtons
[nItem
], bEnable
);
663 } // end of wxRadioBox::Enable
665 bool wxRadioBox::Enable(
669 if ( !wxControl::Enable(bEnable
) )
671 for (int i
= 0; i
< m_nNoItems
; i
++)
672 ::WinEnableWindow((HWND
)m_ahRadioButtons
[i
], bEnable
);
674 } // end of wxRadioBox::Enable
676 int wxRadioBox::GetCount() const
679 } // end of wxRadioBox::GetCount
681 wxString
wxRadioBox::GetLabel(int nItem
) const
683 wxCHECK_MSG( IsValid(nItem
), wxEmptyString
, wxT("invalid radiobox index") );
685 return wxGetWindowText(m_ahRadioButtons
[nItem
]);
686 } // end of wxRadioBox::GetLabel
688 wxSize
wxRadioBox::GetMaxButtonSize() const
693 for (int i
= 0 ; i
< m_nNoItems
; i
++)
698 if (m_pnRadioWidth
[i
] < 0L)
700 GetTextExtent( wxGetWindowText(m_ahRadioButtons
[i
])
706 // Adjust the size to take into account the radio box itself
707 // FIXME this is totally bogus!
709 nWidth
+= RADIO_SIZE
;
715 nWidth
= m_pnRadioWidth
[i
];
716 nHeight
= m_pnRadioHeight
[i
];
718 if (nWidthMax
< nWidth
)
720 if (nHeightMax
< nHeight
)
721 nHeightMax
= nHeight
;
723 wxSize
maxsize( nWidthMax
, nHeightMax
);
725 } // end of wxRadioBox::GetMaxButtonSize
727 void wxRadioBox::GetPosition( int* pnX
,
728 int* WXUNUSED(pnY
) ) const
730 wxWindowOS2
* pParent
= GetParent();
731 RECT vRect
= { -1, -1, -1, -1 };
735 for (i
= 0; i
< m_nNoItems
; i
++)
736 wxFindMaxSize( m_ahRadioButtons
[i
]
740 wxFindMaxSize( m_hWnd
745 // Since we now have the absolute screen coords, if there's a parent we
746 // must subtract its top left corner
748 vPoint
.x
= vRect
.xLeft
;
749 vPoint
.y
= vRect
.yTop
;
754 ::WinQueryWindowPos((HWND
)pParent
->GetHWND(), &vSwp
);
760 // We may be faking the client origin. So a window that's really at (0, 30)
761 // may appear (to wxWin apps) to be at (0, 0).
765 wxPoint
vPt(GetParent()->GetClientAreaOrigin());
772 } // end of wxRadioBox::GetPosition
774 // Get single selection, for single choice list items
775 int wxRadioBox::GetSelection() const
777 return m_nSelectedButton
;
778 } // end of wxRadioBox::GetSelection
780 void wxRadioBox::GetSize( int* pnWidth
, int* pnHeight
) const
791 wxFindMaxSize( m_hWnd
795 for (i
= 0; i
< m_nNoItems
; i
++)
796 wxFindMaxSize( m_ahRadioButtons
[i
]
801 *pnWidth
= vRect
.xRight
- vRect
.xLeft
;
803 *pnHeight
= vRect
.yTop
- vRect
.yBottom
;
804 } // end of wxRadioBox::GetSize
806 // Find string for position
807 wxString
wxRadioBox::GetString(
811 return wxGetWindowText(m_ahRadioButtons
[nNum
]);
812 } // end of wxRadioBox::GetString
814 // For single selection items only
815 wxString
wxRadioBox::GetStringSelection() const
818 int nSel
= GetSelection();
821 sResult
= GetString(nSel
);
823 } // end of wxRadioBox::GetStringSelection
825 wxSize
wxRadioBox::GetTotalButtonSize( const wxSize
& rSizeBtn
) const
833 nCx1
= GetCharWidth();
834 nCy1
= GetCharHeight();
835 nHeight
= GetRowCount() * rSizeBtn
.y
+ (2 * nCy1
);
836 nWidth
= GetColumnCount() * (rSizeBtn
.x
+ nCx1
) + nCx1
;
839 // And also wide enough for its label
841 wxString sStr
= wxGetWindowText(GetHwnd());
848 nWidthLabel
+= 2*nCx1
;
850 if (nWidthLabel
> nWidth
)
851 nWidth
= nWidthLabel
;
853 wxSize
total( nWidth
, nHeight
);
855 } // end of wxRadioBox::GetTotalButtonSize
857 WXHBRUSH
wxRadioBox::OnCtlColor( WXHDC hwinDC
,
858 WXHWND
WXUNUSED(hWnd
),
859 WXUINT
WXUNUSED(uCtlColor
),
860 WXUINT
WXUNUSED(uMessage
),
861 WXWPARAM
WXUNUSED(wParam
),
862 WXLPARAM
WXUNUSED(lParam
) )
864 HPS hPS
= (HPS
)hwinDC
; // pass in a PS handle in OS/2
866 if (GetParent()->GetTransparentBackground())
867 ::GpiSetBackMix(hPS
, BM_LEAVEALONE
);
869 ::GpiSetBackMix(hPS
, BM_OVERPAINT
);
871 wxColour vColBack
= GetBackgroundColour();
873 ::GpiSetBackColor(hPS
, vColBack
.GetPixel());
874 ::GpiSetColor(hPS
, vColBack
.GetPixel());
876 wxBrush
* pBrush
= wxTheBrushList
->FindOrCreateBrush( vColBack
, wxSOLID
);
877 return ((WXHBRUSH
)pBrush
->GetResourceHandle());
878 } // end of wxRadioBox::OnCtlColor
880 bool wxRadioBox::OS2Command( WXUINT uCmd
,
883 int nSelectedButton
= -1;
885 if (uCmd
== BN_CLICKED
)
891 for (int i
= 0; i
< m_nNoItems
; i
++)
893 if (wId
== wxGetWindowId(m_ahRadioButtons
[i
]))
899 if (nSelectedButton
== -1)
906 if (nSelectedButton
!= m_nSelectedButton
)
908 m_nSelectedButton
= nSelectedButton
;
909 SendNotificationEvent();
915 } // end of wxRadioBox::OS2Command
917 void wxRadioBox::SendNotificationEvent()
919 wxCommandEvent
vEvent( wxEVT_COMMAND_RADIOBOX_SELECTED
923 vEvent
.SetInt( m_nSelectedButton
);
924 vEvent
.SetString( GetString(m_nSelectedButton
) );
925 vEvent
.SetEventObject(this);
926 ProcessCommand(vEvent
);
927 } // end of wxRadioBox::SendNotificationEvent
929 void wxRadioBox::SetFocus()
933 if (m_nSelectedButton
== -1)
934 ::WinSetFocus(HWND_DESKTOP
, (HWND
)m_ahRadioButtons
[0]);
936 ::WinSetFocus(HWND_DESKTOP
, (HWND
)m_ahRadioButtons
[m_nSelectedButton
]);
938 } // end of wxRadioBox::SetFocus
940 bool wxRadioBox::SetFont(
944 if (!wxControl::SetFont(rFont
))
952 // Also set the font of our radio buttons
954 for (int n
= 0; n
< (int)m_nNoItems
; n
++)
956 HWND hWndBtn
= (HWND
)m_ahRadioButtons
[n
];
958 wxOS2SetFont( hWndBtn
961 ::WinInvalidateRect(hWndBtn
, NULL
, FALSE
);
964 } // end of wxRadioBox::SetFont
966 void wxRadioBox::SetSelection(
970 wxCHECK_RET( IsValid(nNum
), wxT("invalid radiobox index") );
972 if ( IsValid(m_nSelectedButton
) )
973 ::WinSendMsg((HWND
)m_ahRadioButtons
[m_nSelectedButton
], BM_SETCHECK
, (MPARAM
)0, (MPARAM
)0);
975 ::WinSendMsg((HWND
)m_ahRadioButtons
[nNum
], BM_SETCHECK
, (MPARAM
)1, (MPARAM
)0);
976 ::WinSetFocus(HWND_DESKTOP
, (HWND
)m_ahRadioButtons
[nNum
]);
977 m_nSelectedButton
= nNum
;
978 } // end of wxRadioBox::SetSelection
980 void wxRadioBox::SetString(
982 , const wxString
& rsLabel
985 wxCHECK_RET( IsValid(nItem
), wxT("invalid radiobox index") );
987 m_pnRadioWidth
[nItem
] = m_pnRadioHeight
[nItem
] = -1;
988 ::WinSetWindowText((HWND
)m_ahRadioButtons
[nItem
], (PSZ
)rsLabel
.c_str());
989 } // end of wxRadioBox::SetString
991 bool wxRadioBox::SetStringSelection(const wxString
& rsStr
)
993 int nSel
= FindString(rsStr
);
1002 } // end of wxRadioBox::SetStringSelection
1004 bool wxRadioBox::Show(
1008 if (!wxControl::Show(bShow
))
1011 for (int i
= 0; i
< m_nNoItems
; i
++)
1013 ::WinShowWindow((HWND
)m_ahRadioButtons
[i
], (BOOL
)bShow
);
1016 } // end of wxRadioBox::Show
1018 // Show a specific button
1019 bool wxRadioBox::Show(
1024 wxCHECK_MSG( IsValid(nItem
), false,
1025 wxT("invalid item in wxRadioBox::Show()") );
1027 ::WinShowWindow((HWND
)m_ahRadioButtons
[nItem
], bShow
);
1030 } // end of wxRadioBox::Show
1032 void wxRadioBox::SubclassRadioButton(
1036 fnWndProcRadioBtn
= (WXFARPROC
)::WinSubclassWindow(hWndBtn
, (PFNWP
)wxRadioBtnWndProc
);
1037 } // end of wxRadioBox::SubclassRadioButton
1039 MRESULT
wxRadioBox::WindowProc(
1045 return (wxControl::OS2WindowProc( uMsg
1049 } // end of wxRadioBox::WindowProc
1051 // ---------------------------------------------------------------------------
1052 // window proc for radio buttons
1053 // ---------------------------------------------------------------------------
1055 MRESULT
wxRadioBtnWndProc(
1066 USHORT uKeyFlags
= SHORT1FROMMP((MPARAM
)wParam
);
1068 if (!(uKeyFlags
& KC_KEYUP
)) // Key Down event
1070 if (uKeyFlags
& KC_VIRTUALKEY
)
1072 wxRadioBox
* pRadiobox
= (wxRadioBox
*)::WinQueryWindowULong( hWnd
1075 USHORT uVk
= SHORT2FROMMP((MPARAM
)lParam
);
1076 bool bProcessed
= true;
1101 // Just to suppress the compiler warning
1108 int nSelOld
= pRadiobox
->GetSelection();
1109 int nSelNew
= pRadiobox
->GetNextItem( nSelOld
1111 ,pRadiobox
->GetWindowStyleFlag()
1114 if (nSelNew
!= nSelOld
)
1116 pRadiobox
->SetSelection(nSelNew
);
1119 // Emulate the button click
1121 pRadiobox
->SendNotificationEvent();
1131 return fnWndProcRadioBtn( hWnd
1136 } // end of wxRadioBtnWndProc
1138 MRESULT EXPENTRY
wxRadioBoxWndProc( HWND hWnd
,
1143 return (fnWndProcRadioBox( hWnd
,
1148 } // end of wxRadioBoxWndProc