Changeset 468
- Timestamp:
- Sep 1, 2006, 3:02:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/dll/misc.c ¶
r451 r468 20 20 29 Jul 06 SHL Use xfgets_bstripcr 21 21 16 Aug 06 SHL Comments 22 31 Aug 06 SHL disable_menuitem: rework args to match name - sheesh 22 23 23 24 ***********************************************************************/ … … 806 807 WinSendMsg(hwndMenu, MM_SETITEMATTR, 807 808 MPFROM2SHORT(id, 1), 808 MPFROM2SHORT(MIA_CHECKED, MIA_CHECKED * (*bool !=0)));809 MPFROM2SHORT(MIA_CHECKED, (*bool ? MIA_CHECKED : 0))); 809 810 return *bool; 810 811 } 811 812 812 VOID disable_menuitem(HWND hwndMenu, USHORT id, BOOL enable) 813 //== disable_menuitem() disable or enable_menuitem == 814 815 VOID disable_menuitem(HWND hwndMenu, USHORT id, BOOL disable) 813 816 { 814 817 WinSendMsg(hwndMenu, MM_SETITEMATTR, 815 818 MPFROM2SHORT(id, TRUE), 816 MPFROM2SHORT(MIA_DISABLED, ( (enable == FALSE) * MIA_DISABLED)));819 MPFROM2SHORT(MIA_DISABLED, (disable ? MIA_DISABLED : 0))); 817 820 } 818 821 … … 1637 1640 MPFROM2SHORT(IDM_OPENSUBMENU, TRUE), MPVOID); 1638 1641 } 1639 else if (hwndMenu == &TreeCnrMenu) 1642 else if (hwndMenu == &TreeCnrMenu){ 1640 1643 WinSetWindowUShort(TreeCnrMenu, QWS_ID, IDM_VIEWSMENU); 1644 SetConditionalCascade(TreeCnrMenu, IDM_PARTITIONSMENU, IDM_PARTITION); 1645 if (fWorkPlace) 1646 WinSendMsg(TreeCnrMenu, MM_DELETEITEM, 1647 MPFROM2SHORT(IDM_PARTITIONSMENU, TRUE), MPVOID); 1648 } 1641 1649 else if (hwndMenu == &ArcCnrMenu) { 1642 1650 WinSetWindowUShort(ArcCnrMenu, QWS_ID, IDM_VIEWSMENU);
Note:
See TracChangeset
for help on using the changeset viewer.