Changeset 907 for trunk/dll/treecnr.c
- Timestamp:
- Jan 6, 2008, 8:26:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r906 r907 1 1 2 /*********************************************************************** 2 3 … … 6 7 7 8 Copyright (c) 1993-98 M. Kimes 8 Copyright (c) 2001, 200 7Steven H. Levine9 Copyright (c) 2001, 2008 Steven H. Levine 9 10 10 11 16 Oct 02 SHL Handle large partitions … … 45 46 ***********************************************************************/ 46 47 47 #define INCL_DOS48 #define INCL_WIN49 #define INCL_GPI50 #define INCL_DOSERRORS51 #define INCL_LONGLONG52 #include <os2.h>53 54 #include <stdarg.h>55 #include <stdio.h>56 48 #include <stdlib.h> 57 49 #include <string.h> … … 59 51 #include <process.h> // _beginthread 60 52 61 #include "fm3dll.h" 53 #define INCL_DOS 54 #define INCL_WIN 55 #define INCL_LONGLONG 56 62 57 #include "fm3dlg.h" 63 58 #include "fm3str.h" 64 59 #include "mle.h" 60 #include "comp.h" // COMPARE 61 #include "filldir.h" // RemoveCnrItems... 62 #include "errutil.h" // Dos_Error... 63 #include "strutil.h" // GetPString 64 #include "fm3dll.h" 65 65 66 66 #pragma data_seg(DATA1) … … 202 202 if (~pci->rc.flRecordAttr & CRA_CURSORED) { 203 203 if (collapsefirst) { 204 204 // DbgMsg(pszSrcFile, __LINE__, "collapsing"); // 14 Aug 07 SHL fixme 205 205 pciP = WinSendMsg(hwndCnr, 206 206 CM_QUERYRECORD, 207 207 MPVOID, MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER)); 208 208 while (pciP && (INT) pciP != -1) { 209 #if 1 209 #if 1 // // 05 Jan 08 SHL fixme to be sure this is correct code 210 210 if (pciP->rc.flRecordAttr & CRA_EXPANDED) { 211 211 // collapse top level of all branches … … 256 256 } 257 257 if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED) { 258 258 // DbgMsg(pszSrcFile, __LINE__, "expanding current"); // 14 Aug 07 SHL fixme 259 259 WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID); 260 260 // DbgMsg(pszSrcFile, __LINE__, "expanded"); // 14 Aug 07 SHL fixme 261 261 } 262 262 if (!quickbail) { 263 263 WinSendMsg(hwndCnr, 264 264 CM_SETRECORDEMPHASIS, 265 265 MPFROMP(pciToSelect), … … 2054 2054 2055 2055 CopyPresParams((HWND) mp2, hwndMainMenu); 2056 2056 WinEnableMenuItem((HWND) mp2, IDM_INFO, rdy); 2057 2057 2058 2058 WinEnableMenuItem((HWND) mp2, IDM_ATTRS, writeable); … … 2092 2092 WinEnableMenuItem((HWND) mp2, IDM_MOVEMENU, !underenv 2093 2093 && writeable); 2094 2094 WinEnableMenuItem((HWND) mp2, IDM_RENAME, !underenv && writeable); 2095 2095 2096 2096 } … … 2101 2101 WinCheckMenuItem((HWND) mp2, 2102 2102 IDM_MINIICONS, ((dcd->flWindowAttr & CV_MINI) != 0)); 2103 2103 CopyPresParams((HWND) mp2, hwndMainMenu); 2104 2104 WinEnableMenuItem((HWND) mp2, IDM_RESELECT, FALSE); 2105 2105 break; 2106 2106 2107 2107 case IDM_COMMANDSMENU: 2108 2109 2108 SetupCommandMenu((HWND) mp2, hwnd); 2109 CopyPresParams((HWND) mp2, hwndMainMenu); 2110 2110 break; 2111 2111 2112 2112 case IDM_SORTSUBMENU: 2113 2113 SetSortChecks((HWND) mp2, TreesortFlags); 2114 2115 2114 CopyPresParams((HWND) mp2, hwndMainMenu); 2115 break; 2116 2116 2117 2117 case IDM_WINDOWSMENU: 2118 2118 SetupWinList((HWND) mp2, 2119 2120 2119 (hwndMain) ? hwndMain : (HWND) 0, dcd->hwndFrame); 2120 CopyPresParams((HWND) mp2, hwndMainMenu); 2121 2121 break; 2122 2122 } … … 2411 2411 2412 2412 case IDM_PARTITION: 2413 2414 2413 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2414 NULL, NULL, 2415 2415 "%s", "MINILVM.EXE"); 2416 2416 break; 2417 2417 2418 2418 case IDM_PARTITIONDF: 2419 2420 2419 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2420 NULL, NULL, 2421 2421 "%s", "DFSOS2.EXE"); 2422 2422 break; 2423 2423 2424 2424 case IDM_PARTITIONLVMG: 2425 2426 2425 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2426 NULL, NULL, 2427 2427 "%s", "LVMGUI.CMD"); 2428 2428 break; 2429 2429 2430 2430 case IDM_PARTITIONFD: 2431 2432 2431 runemf2(SEPARATE | WINDOWED, HWND_DESKTOP, pszSrcFile, __LINE__, 2432 NULL, NULL, 2433 2433 "%s", "FDISKPM.EXE"); 2434 2434 break;
Note:
See TracChangeset
for help on using the changeset viewer.