Changeset 166
- Timestamp:
- May 29, 2002, 10:51:13 AM (23 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/dialog.h
r165 r166 404 404 id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING, pctldata } 405 405 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 406 411 /* ****************************************************************** 407 412 * -
trunk/include/helpers/except.h
r164 r166 154 154 #define TRY_LOUD(excptstruct) 155 155 #else 156 #ifdef __NO_LOUD_EXCEPTION_HANDLERS__ 157 #define TRY_LOUD(e) TRY_QUIET(e) 158 #else // __NO_LOUD_EXCEPTION_HANDLERS__ 156 159 #define TRY_LOUD(excptstruct) \ 157 160 { \ … … 169 172 { 170 173 174 #endif // __NO_LOUD_EXCEPTION_HANDLERS__ 171 175 #endif 172 176 -
trunk/include/helpers/winh.h
r159 r166 107 107 #define WinSetDlgItemText(a,b,c) winhSetDlgItemText((a),(b),(c)) 108 108 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 109 115 #ifdef INCL_WINMESSAGEMGR 110 116 APIRET XWPENTRY winhRequestMutexSem(HMTX hmtx, ULONG ulTimeout); … … 798 804 BOOL fEnable); 799 805 806 ULONG winhEnableControls2(HWND hwndDlg, 807 const ULONG *paulIDs, 808 ULONG cIDs, 809 BOOL fEnable); 810 800 811 HWND XWPENTRY winhCreateStdWindow(HWND hwndFrameParent, 801 812 PSWP pswpFrame, -
trunk/src/helpers/prfh.c
r164 r166 233 233 CHAR cDefault) // in: default to return if not found 234 234 { 235 // CHAR crc = 0;236 235 CHAR szTemp[5], 237 236 szDefault[5]; -
trunk/src/helpers/winh.c
r165 r166 3628 3628 USHORT usIDFirst, // in: first affected control ID 3629 3629 USHORT usIDLast, // in: last affected control ID (inclusive) 3630 BOOL fEnable) 3630 BOOL fEnable) // in: enable or disable? 3631 3631 { 3632 3632 HENUM henum1 = NULLHANDLE; … … 3658 3658 WinEndEnumWindows(henum1); 3659 3659 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 3672 ULONG 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; 3660 3688 } 3661 3689
Note:
See TracChangeset
for help on using the changeset viewer.