Changeset 877 for trunk/dll/dircnrs.c
- Timestamp:
- Nov 24, 2007, 8:50:52 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/dll/dircnrs.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dircnrs.c
r875 r877 475 475 476 476 case UM_VIEWSMENU: 477 return MRFROMLONG(CheckMenu(hwnd MainMenu, &DirCnrMenu, DIRCNR_POPUP));477 return MRFROMLONG(CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP)); 478 478 479 479 case UM_DRIVECMD: … … 1554 1554 switch (SHORT1FROMMP(mp1)) { 1555 1555 case IDM_FILESMENU: 1556 if (isalpha(*dcd->directory)) { 1556 CopyPresParams((HWND) mp2, hwndMainMenu); 1557 if (isalpha(*dcd->directory)) { 1557 1558 if (driveflags[toupper(*dcd->directory) - 'A'] & DRIVE_NOTWRITEABLE) { 1558 1559 WinEnableMenuItem((HWND) mp2, IDM_MOVEMENU, FALSE); … … 1578 1579 WinEnableMenuItem((HWND) mp2, IDM_EDITBINARY, TRUE); 1579 1580 WinEnableMenuItem((HWND) mp2, IDM_ATTRS, TRUE); 1580 CopyPresParams((HWND) mp2, hwndMainMenu);1581 1581 } 1582 1582 } … … 1585 1585 case IDM_VIEWSMENU: 1586 1586 SetViewMenu((HWND) mp2, dcd->flWindowAttr); 1587 WinEnableMenuItem((HWND) mp2, IDM_RESELECT, 1587 CopyPresParams((HWND) mp2, hwndMainMenu); 1588 WinEnableMenuItem((HWND) mp2, IDM_RESELECT, 1588 1589 (dcd->lastselection != NULL)); 1589 CopyPresParams((HWND) mp2, hwndMainMenu); 1590 if (isalpha(*dcd->directory)) { 1590 if (isalpha(*dcd->directory)) { 1591 1591 if (driveflags[toupper(*dcd->directory) - 'A'] & DRIVE_NOTWRITEABLE) 1592 1592 WinEnableMenuItem((HWND) mp2, IDM_MKDIR, FALSE); … … 1793 1793 QuickPopup(hwnd, 1794 1794 dcd, 1795 CheckMenu(hwnd MainMenu, &DirCnrMenu, DIRCNR_POPUP), IDM_SELECTSUBMENU);1795 CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP), IDM_SELECTSUBMENU); 1796 1796 break; 1797 1797 1798 1798 case IDM_SHOWSORT: 1799 QuickPopup(hwnd, dcd, CheckMenu(hwnd MainMenu, &DirCnrMenu, DIRCNR_POPUP),1799 QuickPopup(hwnd, dcd, CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP), 1800 1800 IDM_SORTSUBMENU); 1801 1801 break; … … 2646 2646 CM_SETRECORDEMPHASIS, 2647 2647 MPFROMP(pci), MPFROM2SHORT(TRUE, CRA_CURSORED)); 2648 MarkAll(hwnd, FALSE, FALSE, TRUE);2649 if (pci->attrFile & FILE_DIRECTORY)2648 MarkAll(hwnd, FALSE, FALSE, TRUE); 2649 if (pci->attrFile & FILE_DIRECTORY) 2650 2650 dcd->hwndLastMenu = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP); 2651 2651 else … … 2653 2653 } 2654 2654 else { 2655 dcd->hwndLastMenu = CheckMenu(hwnd MainMenu, &DirCnrMenu, DIRCNR_POPUP);2655 dcd->hwndLastMenu = CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP); 2656 2656 if (dcd->hwndLastMenu && !dcd->cnremphasized) { 2657 2657 WinSendMsg(hwnd, … … 3383 3383 idinc = 0; 3384 3384 WinSetWindowUShort(hwndFrame, QWS_ID, id); 3385 hwndMainMenu = WinWindowFromID(hwndFrame, FID_MENU);3386 3385 dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 3387 3386 if (!dcd) {
Note:
See TracChangeset
for help on using the changeset viewer.
