Changeset 1549
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dircnrs.c
r1544 r1549 875 875 WinSendMsg(hwndMain, UM_LOADFILE, MPVOID, MPVOID); 876 876 } 877 if ( fSwitchTree && hwndTree) {877 if (!fInitialDriveScan && fSwitchTree && hwndTree) { 878 878 // Keep drive tree in sync with directory container 879 PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__); 880 if (hwndMain) { 881 if (TopWindow(hwndMain, (HWND) 0) == dcd->hwndFrame && pszTempDir) 882 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 883 free(pszTempDir); 884 } 885 else { 886 if (pszTempDir) 887 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 888 free(pszTempDir); 889 } 879 PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__); 880 if (pszTempDir) { 881 if (hwndMain) { 882 if (TopWindow(hwndMain, (HWND) 0) == dcd->hwndFrame) 883 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 884 free(pszTempDir); 885 } 886 else { 887 if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTempDir), MPVOID)) 888 free(pszTempDir); 889 } 890 } 890 891 } 891 892 dcd->firsttree = FALSE; … … 1385 1386 LastDir = hwnd; 1386 1387 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 1387 1388 1388 if (!fInitialDriveScan && fSwitchTreeOnFocus && hwndTree && dcd && *dcd->directory) { 1389 1389 PSZ pszTempDir = xstrdup(dcd->directory, pszSrcFile, __LINE__); -
trunk/dll/filldir.c
r1544 r1549 297 297 free(ProcessDir); 298 298 } // if ProcessDir 299 if (fInitialDriveScan) { 300 fInitialDriveScan = FALSE; 301 DosPostEventSem(hevInitialCnrScanComplete); 302 DosCloseEventSem(hevInitialCnrScanComplete); 303 } 299 304 # ifdef FORTIFY 300 305 Fortify_LeaveScope(); -
trunk/dll/findrec.c
r1434 r1549 16 16 17 17 #include <string.h> 18 #include <stdlib.h> 18 19 19 20 #define INCL_LONGLONG // dircnrs.h … … 21 22 #include "fm3dll.h" 22 23 #include "findrec.h" 24 #include "errutil.h" // Dos_Error... 25 26 //static PSZ pszSrcFile = __FILE__; 23 27 24 28 PCNRITEM FindCnrRecord(HWND hwndCnr, CHAR *filename, PCNRITEM pciParent, … … 126 130 WinSendMsg(hwndCnr, 127 131 CM_QUERYVIEWPORTRECT, 128 MPFROMP(&rclViewport), MPFROM2SHORT(CMA_WINDOW, FALSE)); 132 MPFROMP(&rclViewport), MPFROM2SHORT(CMA_WINDOW, TRUE)); 133 //DbgMsg(pszSrcFile, __LINE__, "TOPPORT %i TOPRCL %i", rclViewport.yTop , rcl.yTop); 129 134 WinSendMsg(hwndCnr, 130 135 CM_SCROLLWINDOW, 131 136 MPFROMSHORT(CMA_VERTICAL), 132 MPFROMLONG((rclViewport.yTop - rcl.yTop) - 4));137 MPFROMLONG((rclViewport.yTop - (rcl.yTop) - 4))); 133 138 WinSendMsg(hwndCnr, 134 139 CM_SCROLLWINDOW, -
trunk/dll/mainwnd.c
r1546 r1549 358 358 Runtime_Error(pszSrcFile, __LINE__, "%u unexpected", mp2); 359 359 } 360 if (fInitialDriveScan) {361 fInitialDriveScan = FALSE;362 DosPostEventSem(hevInitialCnrScanComplete);363 DosCloseEventSem(hevInitialCnrScanComplete);364 }365 360 return 0; 366 361 … … 5805 5800 load_tools(NULL); 5806 5801 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); 5807 if (fInitialDriveScan) {5808 fInitialDriveScan = FALSE;5809 DosPostEventSem(hevInitialCnrScanComplete);5810 DosCloseEventSem(hevInitialCnrScanComplete);5811 }5812 5802 } 5813 5803 PostMsg(MainObjectHwnd, UM_SETUP4, mp1, mp2); -
trunk/dll/mainwnd2.c
r1544 r1549 888 888 save_dir(s); 889 889 pd->hwndDir2 = StartDirCnr(hwnd, s, (HWND) 0, 3); 890 if (fInitialDriveScan) {891 fInitialDriveScan = FALSE;892 DosPostEventSem(hevInitialCnrScanComplete);893 DosCloseEventSem(hevInitialCnrScanComplete);894 }895 890 WinSetFocus(HWND_DESKTOP, pd->hwndCurr); 896 891 -
trunk/dll/treecnr.c
r1548 r1549 358 358 pciToSelect = pci; 359 359 if (pciToSelect && (INT) pciToSelect != -1) { 360 //DbgMsg(pszSrcFile, __LINE__, "TOP %i %i", fTopDir, maketop); 360 361 if (fTopDir || maketop) { 361 362 ShowCnrRecord(hwndCnr, (PMINIRECORDCORE) pciToSelect); 362 363 } 363 364 if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED) 364 365 WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID); 365 366 if (!quickbail) { 366 367 WinSendMsg(hwndCnr, … … 3276 3277 WinSetWindowText(WinWindowFromID(hwndFrame, FID_TITLEBAR), "VTree"); 3277 3278 FixSwitchList(hwndFrame, "VTree"); 3278 fInitialDriveScan = FALSE;3279 DosPostEventSem(hevInitialCnrScanComplete);3280 DosCloseEventSem(hevInitialCnrScanComplete);3281 3279 } 3282 3280 else {
Note:
See TracChangeset
for help on using the changeset viewer.