Ignore:
Timestamp:
Feb 6, 2000, 6:39:35 PM (26 years ago)
Author:
cbratschi
Message:

ported WinHelpA from WINE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/windlg.cpp

    r2469 r2668  
    1 /* $Id: windlg.cpp,v 1.14 2000-01-18 20:11:05 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.15 2000-02-06 17:39:35 cbratschi Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    130130        if(!dialog || !dialog->IsDialog()) {
    131131            dprintf(("DialogBoxIndirectParamA, dialog %x not found", hwnd));
    132             SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     132            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    133133            return 0;
    134134        }
     
    152152        if(!dialog || !dialog->IsDialog()) {
    153153            dprintf(("DialogBoxIndirectParamW, dialog %x not found", hwnd));
    154             SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     154            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    155155            return 0;
    156156        }
     
    173173        if(!dialog || !dialog->IsDialog()) {
    174174            dprintf(("DialogBoxParamA, dialog %x not found", hwnd));
    175             SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     175            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    176176            return 0;
    177177        }
     
    194194        if(!dialog || !dialog->IsDialog()) {
    195195            dprintf(("DialogBoxParamW, dialog %x not found", hwnd));
    196             SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     196            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    197197            return 0;
    198198        }
     
    297297{
    298298    dprintf(("USER32:  CheckDlgButton\n"));
    299     //CB: set button state
     299
    300300    return (BOOL)SendDlgItemMessageA(hwnd, id, BM_SETCHECK, check,0);
     301}
     302//******************************************************************************
     303//******************************************************************************
     304BOOL 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);
    301321}
    302322//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.