Changeset 62 for trunk/src/helpers/winh.c
- Timestamp:
- Apr 20, 2001, 7:34:41 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r59 r62 3257 3257 3258 3258 /* 3259 *@@ winhMyAnchorBlock: 3260 * returns the proper anchor block (HAB) 3261 * for the calling thread. 3262 * 3263 * Many Win* functions require an HAB to be 3264 * passed in. While many of them will work 3265 * when passing in NULLHANDLE, some (such as 3266 * WinGetMsg) won't. If you don't know the 3267 * anchor block of the calling thread, use 3268 * this function. 3269 * 3270 * This creates a temporary object window to 3271 * find out the anchor block. This is quite 3272 * expensive so only use this if there's no 3273 * other way to find out. 3274 * 3275 *@@added V0.9.11 (2001-04-20) [umoeller] 3276 */ 3277 3278 HAB winhMyAnchorBlock(VOID) 3279 { 3280 HAB hab = NULLHANDLE; 3281 HWND hwnd = winhCreateObjectWindow(WC_BUTTON, NULL); 3282 if (hwnd) 3283 { 3284 hab = WinQueryAnchorBlock(hwnd); 3285 WinDestroyWindow(hwnd); 3286 } 3287 3288 return (hab); 3289 } 3290 3291 /* 3259 3292 *@@ winhFree: 3260 3293 * frees a block of memory allocated by the
Note:
See TracChangeset
for help on using the changeset viewer.