Changeset 877 for trunk/dll/dircnrs.c


Ignore:
Timestamp:
Nov 24, 2007, 8:50:52 PM (18 years ago)
Author:
Gregg Young
Message:

Cleaned up actual fix for drop down menu fonts and colors not matching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r875 r877  
    475475
    476476  case UM_VIEWSMENU:
    477     return MRFROMLONG(CheckMenu(hwndMainMenu, &DirCnrMenu, DIRCNR_POPUP));
     477    return MRFROMLONG(CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP));
    478478
    479479  case UM_DRIVECMD:
     
    15541554      switch (SHORT1FROMMP(mp1)) {
    15551555      case IDM_FILESMENU:
    1556         if (isalpha(*dcd->directory)) {
     1556        CopyPresParams((HWND) mp2, hwndMainMenu);
     1557        if (isalpha(*dcd->directory)) {
    15571558          if (driveflags[toupper(*dcd->directory) - 'A'] & DRIVE_NOTWRITEABLE) {
    15581559            WinEnableMenuItem((HWND) mp2, IDM_MOVEMENU, FALSE);
     
    15781579            WinEnableMenuItem((HWND) mp2, IDM_EDITBINARY, TRUE);
    15791580            WinEnableMenuItem((HWND) mp2, IDM_ATTRS, TRUE);
    1580             CopyPresParams((HWND) mp2, hwndMainMenu);
    15811581          }
    15821582        }
     
    15851585      case IDM_VIEWSMENU:
    15861586        SetViewMenu((HWND) mp2, dcd->flWindowAttr);
    1587         WinEnableMenuItem((HWND) mp2, IDM_RESELECT,
     1587        CopyPresParams((HWND) mp2, hwndMainMenu);
     1588        WinEnableMenuItem((HWND) mp2, IDM_RESELECT,
    15881589                          (dcd->lastselection != NULL));
    1589         CopyPresParams((HWND) mp2, hwndMainMenu);
    1590         if (isalpha(*dcd->directory)) {
     1590        if (isalpha(*dcd->directory)) {
    15911591          if (driveflags[toupper(*dcd->directory) - 'A'] & DRIVE_NOTWRITEABLE)
    15921592            WinEnableMenuItem((HWND) mp2, IDM_MKDIR, FALSE);
     
    17931793        QuickPopup(hwnd,
    17941794                   dcd,
    1795                    CheckMenu(hwndMainMenu, &DirCnrMenu, DIRCNR_POPUP), IDM_SELECTSUBMENU);
     1795                   CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP), IDM_SELECTSUBMENU);
    17961796        break;
    17971797
    17981798      case IDM_SHOWSORT:
    1799         QuickPopup(hwnd, dcd, CheckMenu(hwndMainMenu, &DirCnrMenu, DIRCNR_POPUP),
     1799        QuickPopup(hwnd, dcd, CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP),
    18001800                   IDM_SORTSUBMENU);
    18011801        break;
     
    26462646                       CM_SETRECORDEMPHASIS,
    26472647                       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)
    26502650              dcd->hwndLastMenu = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP);
    26512651            else
     
    26532653          }
    26542654          else {
    2655             dcd->hwndLastMenu = CheckMenu(hwndMainMenu, &DirCnrMenu, DIRCNR_POPUP);
     2655            dcd->hwndLastMenu = CheckMenu(hwnd, &DirCnrMenu, DIRCNR_POPUP);
    26562656            if (dcd->hwndLastMenu && !dcd->cnremphasized) {
    26572657              WinSendMsg(hwnd,
     
    33833383        idinc = 0;
    33843384      WinSetWindowUShort(hwndFrame, QWS_ID, id);
    3385       hwndMainMenu = WinWindowFromID(hwndFrame, FID_MENU);
    33863385      dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__);
    33873386      if (!dcd) {
Note: See TracChangeset for help on using the changeset viewer.