Changeset 166


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

Bunch of fixes.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/dialog.h

    r165 r166  
    404404            id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING, pctldata }
    405405
     406    #define CONTROLDEF_VSLIDER(id, cx, cy, pctldata) { WC_SLIDER, NULL, \
     407            WS_VISIBLE | WS_TABSTOP | WS_GROUP | SLS_VERTICAL | SLS_PRIMARYSCALE1 \
     408            | SLS_BUTTONSRIGHT | SLS_SNAPTOINCREMENT, \
     409            id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING, pctldata }
     410
    406411    /* ******************************************************************
    407412     *
  • trunk/include/helpers/except.h

    r164 r166  
    154154        #define TRY_LOUD(excptstruct)
    155155    #else
     156        #ifdef __NO_LOUD_EXCEPTION_HANDLERS__
     157            #define TRY_LOUD(e) TRY_QUIET(e)
     158        #else // __NO_LOUD_EXCEPTION_HANDLERS__
    156159        #define TRY_LOUD(excptstruct)                                           \
    157160                {                                                               \
     
    169172                    {
    170173
     174        #endif // __NO_LOUD_EXCEPTION_HANDLERS__
    171175    #endif
    172176
  • trunk/include/helpers/winh.h

    r159 r166  
    107107        #define WinSetDlgItemText(a,b,c) winhSetDlgItemText((a),(b),(c))
    108108
     109        // pmwin.h defines the WinEnableControl macro; turn this into our function call
     110        #ifdef WinEnableControl
     111            #undef WinEnableControl
     112        #endif
     113        #define WinEnableControl(hwndDlg, id, fEnable) winhEnableDlgItem((hwndDlg), (id), (fEnable))
     114
    109115        #ifdef INCL_WINMESSAGEMGR
    110116            APIRET XWPENTRY winhRequestMutexSem(HMTX hmtx, ULONG ulTimeout);
     
    798804                                      BOOL fEnable);
    799805
     806    ULONG winhEnableControls2(HWND hwndDlg,
     807                              const ULONG *paulIDs,
     808                              ULONG cIDs,
     809                              BOOL fEnable);
     810
    800811    HWND XWPENTRY winhCreateStdWindow(HWND hwndFrameParent,
    801812                                      PSWP pswpFrame,
  • trunk/src/helpers/prfh.c

    r164 r166  
    233233                          CHAR cDefault)    // in: default to return if not found
    234234{
    235     // CHAR    crc = 0;
    236235    CHAR    szTemp[5],
    237236            szDefault[5];
  • 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.