Modify CheckRadioButton function to be more consistent with Windows.
This commit is contained in:
parent
0307701201
commit
6982039ffc
@ -1294,9 +1294,8 @@ BOOL WINAPI CheckRadioButton( HWND hwndDlg, UINT firstID,
|
|||||||
{
|
{
|
||||||
RADIOGROUP radioGroup;
|
RADIOGROUP radioGroup;
|
||||||
|
|
||||||
/* perform bounds checking for a radio button group */
|
radioGroup.firstID = firstID;
|
||||||
radioGroup.firstID = min(min(firstID, lastID), checkID);
|
radioGroup.lastID = lastID;
|
||||||
radioGroup.lastID = max(max(firstID, lastID), checkID);
|
|
||||||
radioGroup.checkID = checkID;
|
radioGroup.checkID = checkID;
|
||||||
|
|
||||||
return EnumChildWindows(hwndDlg, (WNDENUMPROC)CheckRB,
|
return EnumChildWindows(hwndDlg, (WNDENUMPROC)CheckRB,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user