Changeset 69 for trunk/include/helpers/winh.h
- Timestamp:
- May 19, 2001, 3:47:20 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/winh.h
r62 r69 3 3 *@@sourcefile winh.h: 4 4 * header file for winh.c (PM helper funcs). See remarks there. 5 * 6 * Special #define's which this thing reacts to: 7 * 8 * -- If WINH_STANDARDWRAPPERS is defined to anything, this include 9 * file maps a number of freqently API calls (such as WinSendMsg) 10 * to winh* equivalents to reduce the amount of fixup records 11 * in the final executable. 5 12 * 6 13 * Note: Version numbering in this file relates to XWorkplace version … … 66 73 /* ****************************************************************** 67 74 * 75 * Wrappers 76 * 77 ********************************************************************/ 78 79 // if WINH_STANDARDWRAPPERS is #define'd before including winh.h, 80 // all the following Win* API calls are redirected to the winh* 81 // counterparts 82 83 #ifdef WINH_STANDARDWRAPPERS 84 85 MRESULT _Optlink winhSendMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 86 #define WinSendMsg(a,b,c,d) winhSendMsg((a),(b),(c),(d)) 87 88 BOOL _Optlink winhPostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2); 89 #define WinPostMsg(a,b,c,d) winhPostMsg((a),(b),(c),(d)) 90 91 HWND _Optlink winhWindowFromID(HWND hwnd, ULONG id); 92 #define WinWindowFromID(a,b) winhWindowFromID((a),(b)) 93 94 HWND _Optlink winhQueryWindow(HWND hwnd, LONG lCode); 95 #define WinQueryWindow(a,b) winhQueryWindow((a),(b)) 96 97 #endif 98 99 /* ****************************************************************** 100 * 68 101 * Macros 69 102 * … … 81 114 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, ((PSZ)text), ((PSZ)title), 0, MB_YESNO | MB_ICONQUESTION | MB_MOVEABLE) 82 115 83 #define winhSetDlgItemChecked(hwnd, id, bCheck) \ 116 // made these functions V0.9.12 (2001-05-18) [umoeller] 117 /* #define winhSetDlgItemChecked(hwnd, id, bCheck) \ 84 118 WinSendDlgItemMsg((hwnd), (id), BM_SETCHECK, MPFROMSHORT(bCheck), MPNULL) 85 86 119 #define winhIsDlgItemChecked(hwnd, id) \ 87 120 (SHORT1FROMMR(WinSendDlgItemMsg((hwnd), (id), BM_QUERYCHECK, MPNULL, MPNULL))) 121 */ 88 122 89 123 #define winhSetMenuItemChecked(hwndMenu, usId, bCheck) \ … … 94 128 WinShowWindow(WinWindowFromID(hwnd, id), show) 95 129 96 #define winhEnableDlgItem(hwndDlg, ulId, Enable) \ 130 // made these functions V0.9.12 (2001-05-18) [umoeller] 131 /* #define winhEnableDlgItem(hwndDlg, ulId, Enable) \ 97 132 WinEnableWindow(WinWindowFromID(hwndDlg, ulId), Enable) 98 99 133 #define winhIsDlgItemEnabled(hwndDlg, ulId) \ 100 134 WinIsWindowEnabled(WinWindowFromID(hwndDlg, ulId)) 135 */ 101 136 102 137 #define winhSetDlgItemFocus(hwndDlg, ulId) \ … … 113 148 /* ****************************************************************** 114 149 * 150 * Generics 151 * 152 ********************************************************************/ 153 154 BOOL XWPENTRY winhSetDlgItemChecked(HWND hwnd, SHORT id, SHORT bCheck); 155 156 SHORT XWPENTRY winhIsDlgItemChecked(HWND hwnd, SHORT id); 157 158 BOOL XWPENTRY winhEnableDlgItem(HWND hwndDlg, SHORT id, BOOL fEnable); 159 160 BOOL XWPENTRY winhIsDlgItemEnabled(HWND hwndDlg, SHORT id); 161 162 /* ****************************************************************** 163 * 115 164 * Menu helpers 116 165 * 117 166 ********************************************************************/ 167 168 #ifdef INCL_WINMENUS 169 BOOL XWPENTRY winhQueryMenuItem(HWND hwndMenu, 170 USHORT usItemID, 171 BOOL fSearchSubmenus, 172 PMENUITEM pmi); 173 #endif 118 174 119 175 /* … … 772 828 773 829 ULONG XWPENTRY winhResetWPS(HAB hab); 830 774 831 #endif 775 832
Note:
See TracChangeset
for help on using the changeset viewer.