Changeset 73 for trunk/src/helpers/winh.c
- Timestamp:
- May 23, 2001, 6:59:40 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r71 r73 448 448 } 449 449 return (hwndNewMenu); 450 } 451 452 /* 453 *@@ winhSetMenuCondCascade: 454 * sets the "conditional cascade" style 455 * on the specified submenu. 456 * 457 * This style must always be enabled manually 458 * because the resource compiler won't handle it. 459 * 460 * Note: Pass in the _submenu_ window handle, 461 * not the one of the parent. With lDefaultItem, 462 * specify the item ID in the submenu which is 463 * to be checked as the default item. 464 * 465 *@@added V0.9.12 (2001-05-22) [umoeller] 466 */ 467 468 BOOL winhSetMenuCondCascade(HWND hwndMenu, // in: submenu handle 469 LONG lDefaultItem) // in: item ID of new default item 470 { 471 // stolen from the Warp Toolkit WPS Guide 472 ULONG ulStyle = WinQueryWindowULong(hwndMenu, QWL_STYLE); 473 ulStyle |= MS_CONDITIONALCASCADE; 474 WinSetWindowULong(hwndMenu, QWL_STYLE, ulStyle); 475 476 // make the first item in the subfolder 477 // the default of cascading submenu */ 478 return (BOOL)(WinSendMsg(hwndMenu, 479 MM_SETDEFAULTITEMID, 480 (MPARAM)lDefaultItem, 481 0)); 450 482 } 451 483
Note:
See TracChangeset
for help on using the changeset viewer.