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) { -
trunk/dll/mainwnd.c
r875 r877 1269 1269 hwndMenu = WinLoadMenu(hwnd, FM3ModHandle, ID_BUTTONMENU); 1270 1270 DosExitCritSec(); 1271 //SetPresParams(hwndMenu, NULL, NULL, NULL, GetPString(IDS_10SYSPROTEXT));1271 SetPresParams(hwndMenu, NULL, NULL, NULL, GetPString(IDS_10SYSPROTEXT)); 1272 1272 if (PopupMenu(hwnd, hwnd, hwndMenu)) 1273 1273 WinShowWindow(hwndMenu, TRUE); … … 2196 2196 (ULONG) sizeof(AttrValue), &AttrValue, 0); 2197 2197 if (cbRetLen) { 2198 switch (AttrFound) {2199 case PP_FONTNAMESIZE:2198 //switch (AttrFound) { 2199 //case PP_FONTNAMESIZE: 2200 2200 PostMsg(WinQueryWindow(hwnd, QW_PARENT), 2201 2201 WM_UPDATEFRAME, MPFROMLONG(FCF_SIZEBORDER), MPVOID); 2202 2202 break; 2203 } 2203 2204 2204 } 2205 2205 } -
trunk/dll/misc.c
r872 r877 1565 1565 WinSetParent(mi.hwndSubMenu, hwndMenu, FALSE); 1566 1566 WinSetWindowUShort(mi.hwndSubMenu, QWS_ID, IDM_FILESMENU); 1567 CopyPresParams(mi.hwndSubMenu, hwndNow);1568 1567 mi.afStyle = MIS_SUBMENU; 1569 1568 ulStyle = WinQueryWindowULong(mi.hwndSubMenu, QWL_STYLE); … … 1597 1596 WinSetParent(mi.hwndSubMenu, hwndMenu, FALSE); 1598 1597 WinSetWindowUShort(mi.hwndSubMenu, QWS_ID, IDM_VIEWSMENU); 1599 CopyPresParams(mi.hwndSubMenu, hwndNow);1600 1598 mi.afStyle = MIS_SUBMENU; 1601 1599 ulStyle = WinQueryWindowULong(mi.hwndSubMenu, QWL_STYLE); … … 1614 1612 if (!*hwndMenu || !WinIsWindow((HAB) 0, *hwndMenu)) { 1615 1613 *hwndMenu = WinLoadMenu(HWND_DESKTOP, FM3ModHandle, id); 1614 CopyPresParams(*hwndMenu, hwnd); 1616 1615 if (hwndMenu == &DirMenu) { 1617 1616 WinSetWindowUShort(DirMenu, QWS_ID, IDM_FILESMENU); 1618 CopyPresParams(*hwndMenu, hwnd);1619 1617 SetConditionalCascade(DirMenu, IDM_COMMANDSMENU, IDM_DOITYOURSELF); 1620 1618 SetConditionalCascade(DirMenu, IDM_COPYMENU, IDM_COPY); … … 1636 1634 else if (hwndMenu == &TreeMenu) { 1637 1635 WinSetWindowUShort(TreeMenu, QWS_ID, IDM_FILESMENU); 1638 CopyPresParams(*hwndMenu, hwnd);1639 1636 SetConditionalCascade(TreeMenu, IDM_COMMANDSMENU, IDM_DOITYOURSELF); 1640 1637 SetConditionalCascade(TreeMenu, IDM_SAVESUBMENU, IDM_SAVETOCLIP); … … 1652 1649 else if (hwndMenu == &ArcMenu) { 1653 1650 WinSetWindowUShort(ArcMenu, QWS_ID, IDM_FILESMENU); 1654 CopyPresParams(*hwndMenu, hwnd);1655 1651 SetConditionalCascade(ArcMenu, IDM_EXTRACTSUBMENU, IDM_EXTRACT); 1656 1652 SetConditionalCascade(ArcMenu, IDM_EDITSUBMENU, IDM_EDIT); … … 1662 1658 else if (hwndMenu == &FileMenu) { 1663 1659 WinSetWindowUShort(FileMenu, QWS_ID, IDM_FILESMENU); 1664 CopyPresParams(*hwndMenu, hwnd);1665 1660 SetConditionalCascade(FileMenu, IDM_COMMANDSMENU, IDM_DOITYOURSELF); 1666 1661 SetConditionalCascade(FileMenu, IDM_COPYMENU, IDM_COPY); … … 1683 1678 else if (hwndMenu == &DirCnrMenu) { 1684 1679 WinSetWindowUShort(DirCnrMenu, QWS_ID, IDM_VIEWSMENU); 1685 CopyPresParams(*hwndMenu, hwnd);1686 1680 SetConditionalCascade(DirCnrMenu, IDM_MISCSUBMENU, IDM_SIZES); 1687 1681 SetConditionalCascade(DirCnrMenu, IDM_OPENSUBMENU, IDM_OPENSETTINGSME); … … 1692 1686 else if (hwndMenu == &TreeCnrMenu) { 1693 1687 WinSetWindowUShort(TreeCnrMenu, QWS_ID, IDM_VIEWSMENU); 1694 CopyPresParams(*hwndMenu, hwnd);1695 1688 SetConditionalCascade(TreeCnrMenu, IDM_PARTITIONSMENU, IDM_PARTITION); 1696 1689 } 1697 1690 else if (hwndMenu == &ArcCnrMenu) { 1698 1691 WinSetWindowUShort(ArcCnrMenu, QWS_ID, IDM_VIEWSMENU); 1699 CopyPresParams(*hwndMenu, hwnd);1700 1692 SetConditionalCascade(ArcCnrMenu, IDM_EXTRACTSUBMENU, IDM_ARCEXTRACT); 1701 1693 if (fWorkPlace) … … 1705 1697 else if (hwndMenu == &CollectorCnrMenu) { 1706 1698 WinSetWindowUShort(CollectorCnrMenu, QWS_ID, IDM_VIEWSMENU); 1707 CopyPresParams(*hwndMenu, hwnd);1708 1699 SetConditionalCascade(CollectorCnrMenu, IDM_COLLECTMENU, 1709 1700 IDM_COLLECTFROMCLIP); … … 1711 1702 else if (hwndMenu == &CollectorFileMenu) { 1712 1703 WinSetWindowUShort(CollectorFileMenu, QWS_ID, IDM_FILESMENU); 1713 CopyPresParams(*hwndMenu, hwnd);1714 1704 SetConditionalCascade(CollectorFileMenu, IDM_COMMANDSMENU, 1715 1705 IDM_DOITYOURSELF); … … 1734 1724 else if (hwndMenu == &CollectorDirMenu) { 1735 1725 WinSetWindowUShort(CollectorDirMenu, QWS_ID, IDM_FILESMENU); 1736 CopyPresParams(*hwndMenu, hwnd);1737 1726 SetConditionalCascade(CollectorDirMenu, IDM_COMMANDSMENU, 1738 1727 IDM_DOITYOURSELF); … … 1757 1746 else if (hwndMenu == &MainPopupMenu) { 1758 1747 WinSetWindowUShort(MainPopupMenu, QWS_ID, IDM_MAINPOPUP); 1759 CopyPresParams(*hwndMenu, hwnd);1760 1748 SetConditionalCascade(MainPopupMenu, IDM_TOOLSUBMENU, IDM_TOOLBAR); 1761 1749 SetConditionalCascade(MainPopupMenu, IDM_AUTOVIEWSUBMENU, IDM_AUTOVIEW); 1762 1750 } 1763 1751 } 1752 CopyPresParams(*hwndMenu, hwnd); 1764 1753 return *hwndMenu; 1765 1754 } -
trunk/dll/presparm.c
r872 r877 325 325 326 326 ULONG AttrFound, AttrValue[64], cbRetLen, x = 0, 327 AttrName[] = { PP_FONTNAMESIZE, PP_BACKGROUNDCOLOR, 328 PP_FOREGROUNDCOLOR, PP_HILITEBACKGROUNDCOLOR, 329 PP_HILITEFOREGROUNDCOLOR, PP_BORDERCOLOR, 330 0 331 }; 332 333 while (AttrName[x]) { 327 AttrName[] = { PP_FONTNAMESIZE, PP_FOREGROUNDCOLOR, 328 PP_BACKGROUNDCOLOR, PP_HILITEBACKGROUNDCOLOR, 329 PP_HILITEFOREGROUNDCOLOR, PP_BORDERCOLOR}; 330 331 for (x=0; x < 6; x++) { 334 332 cbRetLen = WinQueryPresParam(source, 335 333 AttrName[x], 336 334 0, 337 335 &AttrFound, 338 (ULONG) sizeof(AttrValue), &AttrValue, 0); 336 sizeof(AttrValue), 337 &AttrValue, 0); 338 //printf("%s %x\n", AttrValue, source); fflush(stdout); 339 //printf("%x\n", AttrValue); fflush(stdout); 339 340 if (cbRetLen) 340 341 WinSetPresParam(target, AttrName[x], cbRetLen, (PVOID) AttrValue); 341 x++; 342 } 342 } //for 343 343 } 344 344 -
trunk/dll/treecnr.c
r875 r877 2053 2053 underenv = (pci->flags & RECFLAGS_UNDERENV) != 0; 2054 2054 2055 WinEnableMenuItem((HWND) mp2, IDM_INFO, rdy); 2055 CopyPresParams((HWND) mp2, hwndMainMenu); 2056 WinEnableMenuItem((HWND) mp2, IDM_INFO, rdy); 2056 2057 2057 2058 WinEnableMenuItem((HWND) mp2, IDM_ATTRS, writeable); … … 2092 2093 && writeable); 2093 2094 WinEnableMenuItem((HWND) mp2, IDM_RENAME, !underenv && writeable); 2094 CopyPresParams((HWND) mp2, hwndMainMenu);2095 2095 2096 2096 } … … 2101 2101 WinCheckMenuItem((HWND) mp2, 2102 2102 IDM_MINIICONS, ((dcd->flWindowAttr & CV_MINI) != 0)); 2103 WinEnableMenuItem((HWND) mp2, IDM_RESELECT, FALSE);2104 2103 CopyPresParams((HWND) mp2, hwndMainMenu); 2105 break; 2104 WinEnableMenuItem((HWND) mp2, IDM_RESELECT, FALSE); 2105 break; 2106 2106 2107 2107 case IDM_COMMANDSMENU: … … 2942 2942 FM3ModHandle, TREE_FRAME, &hwndClient); 2943 2943 if (hwndFrame && hwndClient) { 2944 hwndMainMenu = WinWindowFromID(hwndFrame, FID_MENU);2945 2944 dcd = xmalloc(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 2946 2945 if (!dcd) {
Note:
See TracChangeset
for help on using the changeset viewer.
