Changeset 83 for trunk/src/helpers/winh.c
- Timestamp:
- Jun 28, 2001, 7:13:56 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r81 r83 120 120 121 121 /* 122 *@@ winhSendDlgItemMsg: 123 * wrapper for WinSendDlgItemMsg. 124 * 125 * If WINH_STANDARDWRAPPERS is #defined before 126 * including win.h, all WinSendMsg calls are 127 * redefined to use this wrapper instead. This 128 * reduces the amount of external fixups required 129 * for loading the module. 130 * 131 *@@added V0.9.13 (2001-06-27) [umoeller] 132 */ 133 134 MRESULT winhSendDlgItemMsg(HWND hwnd, ULONG id, ULONG msg, MPARAM mp1, MPARAM mp2) 135 { 136 return ((WinSendDlgItemMsg)(hwnd, id, msg, mp1, mp2)); 137 } 138 139 /* 122 140 *@@ winhPostMsg: 123 141 * wrapper for WinPostMsg. … … 240 258 * 241 259 ********************************************************************/ 242 243 /*244 *@@ winhSetDlgItemChecked:245 * checks a check box.246 *247 * This has been turned into a real function248 * because this is used hundreds of times in249 * XWP, and each WinSendDlgItemMsg in each250 * macro produced a fixup relocation record.251 *252 *@@added V0.9.12 (2001-05-18) [umoeller]253 */254 255 BOOL winhSetDlgItemChecked(HWND hwnd, // in: dialog256 SHORT id, // in: dialog item ID257 SHORT bCheck) // in: 0, 1, or (for tri-state) 2258 {259 return ((BOOL)WinSendDlgItemMsg(hwnd,260 id,261 BM_SETCHECK,262 MPFROMSHORT(bCheck),263 MPNULL));264 }265 266 /*267 *@@ winhIsDlgItemChecked:268 * returns the current check state of the269 * specified check box, which can be 0, 1,270 * or (for tri-state checkboxes) 2.271 *272 *@@added V0.9.12 (2001-05-18) [umoeller]273 */274 275 SHORT winhIsDlgItemChecked(HWND hwnd, // in: dialog276 SHORT id) // in: dialog item ID277 {278 return (SHORT1FROMMR(WinSendDlgItemMsg(hwnd,279 id,280 BM_QUERYCHECK,281 MPNULL,282 MPNULL)));283 }284 260 285 261 /*
Note:
See TracChangeset
for help on using the changeset viewer.