Changeset 872 for trunk/dll/dircnrs.c
- Timestamp:
- Nov 23, 2007, 12:11:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dircnrs.c
r847 r872 31 31 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 32 32 26 Aug 07 GKY DosSleep(1) in loops changed to (0) 33 33 22 Nov 07 GKY Use CopyPresParams to fix presparam inconsistencies in menus 34 34 35 35 ***********************************************************************/ … … 132 132 } 133 133 } 134 hwndButtonPopup = WinLoadMenu(HWND_DESKTOP, FM3ModHandle, id); 134 hwndButtonPopup = WinLoadMenu(HWND_DESKTOP, FM3ModHandle, id); 135 CopyPresParams(hwndButtonPopup, hwnd); 135 136 if (hwndButtonPopup) { 136 137 WinSetWindowUShort(hwndButtonPopup, QWS_ID, id); … … 474 475 475 476 case UM_VIEWSMENU: 476 return MRFROMLONG(CheckMenu( &DirCnrMenu, DIRCNR_POPUP));477 return MRFROMLONG(CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP)); 477 478 478 479 case UM_DRIVECMD: … … 1576 1577 WinEnableMenuItem((HWND) mp2, IDM_EDITTEXT, TRUE); 1577 1578 WinEnableMenuItem((HWND) mp2, IDM_EDITBINARY, TRUE); 1578 WinEnableMenuItem((HWND) mp2, IDM_ATTRS, TRUE); 1579 WinEnableMenuItem((HWND) mp2, IDM_ATTRS, TRUE); 1580 CopyPresParams((HWND) mp2, hwnd); 1579 1581 } 1580 1582 } … … 1582 1584 1583 1585 case IDM_VIEWSMENU: 1584 1586 SetViewMenu((HWND) mp2, dcd->flWindowAttr); 1585 1587 WinEnableMenuItem((HWND) mp2, IDM_RESELECT, 1586 (dcd->lastselection != NULL)); 1588 (dcd->lastselection != NULL)); 1589 CopyPresParams((HWND) mp2, hwnd); 1587 1590 if (isalpha(*dcd->directory)) { 1588 1591 if (driveflags[toupper(*dcd->directory) - 'A'] & DRIVE_NOTWRITEABLE) … … 1790 1793 QuickPopup(hwnd, 1791 1794 dcd, 1792 CheckMenu( &DirCnrMenu, DIRCNR_POPUP), IDM_SELECTSUBMENU);1795 CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP), IDM_SELECTSUBMENU); 1793 1796 break; 1794 1797 1795 1798 case IDM_SHOWSORT: 1796 QuickPopup(hwnd, dcd, CheckMenu( &DirCnrMenu, DIRCNR_POPUP),1799 QuickPopup(hwnd, dcd, CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP), 1797 1800 IDM_SORTSUBMENU); 1798 1801 break; … … 2559 2562 if (pci && (INT) pci != -1) { 2560 2563 if (pci->attrFile & FILE_DIRECTORY) { 2561 menuHwnd = CheckMenu( &DirMenu, DIR_POPUP);2564 menuHwnd = CheckMenu(hwnd, &DirMenu, DIR_POPUP); 2562 2565 // WinEnableMenuItem(DirMenu,IDM_TREE,TRUE); 2563 2566 } 2564 2567 else 2565 menuHwnd = CheckMenu( &FileMenu, FILE_POPUP);2568 menuHwnd = CheckMenu(hwnd, &FileMenu, FILE_POPUP); 2566 2569 } 2567 2570 return MRFROMLONG(menuHwnd); … … 2645 2648 MarkAll(hwnd, FALSE, FALSE, TRUE); 2646 2649 if (pci->attrFile & FILE_DIRECTORY) 2647 dcd->hwndLastMenu = CheckMenu( &DirMenu, DIR_POPUP);2650 dcd->hwndLastMenu = CheckMenu(hwnd, &DirMenu, DIR_POPUP); 2648 2651 else 2649 dcd->hwndLastMenu = CheckMenu( &FileMenu, FILE_POPUP);2652 dcd->hwndLastMenu = CheckMenu(hwnd, &FileMenu, FILE_POPUP); 2650 2653 } 2651 2654 else { 2652 dcd->hwndLastMenu = CheckMenu( &DirCnrMenu, DIRCNR_POPUP);2655 dcd->hwndLastMenu = CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP); 2653 2656 if (dcd->hwndLastMenu && !dcd->cnremphasized) { 2654 2657 WinSendMsg(hwnd,
Note:
See TracChangeset
for help on using the changeset viewer.