Ignore:
Timestamp:
May 29, 2002, 10:51:13 AM (23 years ago)
Author:
umoeller
Message:

Bunch of fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/winh.c

    r165 r166  
    36283628                         USHORT usIDFirst,              // in: first affected control ID
    36293629                         USHORT usIDLast,               // in: last affected  control ID (inclusive)
    3630                          BOOL fEnable)
     3630                         BOOL fEnable)                  // in: enable or disable?
    36313631{
    36323632    HENUM   henum1 = NULLHANDLE;
     
    36583658    WinEndEnumWindows(henum1);
    36593659    return (ulCount);
     3660}
     3661
     3662/*
     3663 *@@ winhEnableControls2:
     3664 *      like winhEnableControls, but instead this
     3665 *      takes an array of ULONGs as input, which
     3666 *      is assumed to contain the dialog IDs of
     3667 *      the controls to be enabled/disabled.
     3668 *
     3669 *@@added V0.9.19 (2002-05-28) [umoeller]
     3670 */
     3671
     3672ULONG winhEnableControls2(HWND hwndDlg,             // in: dialog window
     3673                          const ULONG *paulIDs,     // in: array of dialog IDs
     3674                          ULONG cIDs,               // in: array item count (NOT array size)
     3675                          BOOL fEnable)             // in: enable or disable?
     3676{
     3677    ULONG   ul,
     3678            ulrc = 0;
     3679    for (ul = 0;
     3680         ul < cIDs;
     3681         ++ul)
     3682    {
     3683        if (WinEnableControl(hwndDlg, paulIDs[ul], fEnable))
     3684            ++ulrc;
     3685    }
     3686
     3687    return ulrc;
    36603688}
    36613689
Note: See TracChangeset for help on using the changeset viewer.