Changeset 2668 for trunk/src/user32/windlg.cpp
- Timestamp:
- Feb 6, 2000, 6:39:35 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windlg.cpp
r2469 r2668 1 /* $Id: windlg.cpp,v 1.1 4 2000-01-18 20:11:05 sandervlExp $ */1 /* $Id: windlg.cpp,v 1.15 2000-02-06 17:39:35 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 dialog apis for OS/2 … … 130 130 if(!dialog || !dialog->IsDialog()) { 131 131 dprintf(("DialogBoxIndirectParamA, dialog %x not found", hwnd)); 132 132 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 133 133 return 0; 134 134 } … … 152 152 if(!dialog || !dialog->IsDialog()) { 153 153 dprintf(("DialogBoxIndirectParamW, dialog %x not found", hwnd)); 154 154 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 155 155 return 0; 156 156 } … … 173 173 if(!dialog || !dialog->IsDialog()) { 174 174 dprintf(("DialogBoxParamA, dialog %x not found", hwnd)); 175 175 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 176 176 return 0; 177 177 } … … 194 194 if(!dialog || !dialog->IsDialog()) { 195 195 dprintf(("DialogBoxParamW, dialog %x not found", hwnd)); 196 196 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 197 197 return 0; 198 198 } … … 297 297 { 298 298 dprintf(("USER32: CheckDlgButton\n")); 299 //CB: set button state 299 300 300 return (BOOL)SendDlgItemMessageA(hwnd, id, BM_SETCHECK, check,0); 301 } 302 //****************************************************************************** 303 //****************************************************************************** 304 BOOL WIN32API CheckRadioButton( HWND hDlg, UINT nIDFirstButton, UINT nIDLastButton, UINT nIDCheckButton) 305 { 306 dprintf(("USER32: CheckRadioButton\n")); 307 308 //CB: check radio buttons in interval 309 if (nIDFirstButton > nIDLastButton) 310 { 311 SetLastError(ERROR_INVALID_PARAMETER); 312 return (FALSE); 313 } 314 315 for (UINT x = nIDFirstButton;x <= nIDLastButton;x++) 316 { 317 SendDlgItemMessageA(hDlg,x,BM_SETCHECK,(x == nIDCheckButton) ? BST_CHECKED : BST_UNCHECKED,0); 318 } 319 320 return (TRUE); 301 321 } 302 322 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.