Changeset 1549 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Oct 25, 2010, 3:08:51 AM (15 years ago)
Author:
Gregg Young
Message:

This "fixes" the double entries in the tree container (Ticket 363); it also means the tree ignores the fSwitchTree* variables on startup. The only remaining problem is on the first focus changes between 2 directory containers the directory doesn't always get placed at the top of the tree container after the first switch to each it seems to work fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1548 r1549  
    358358    pciToSelect = pci;
    359359    if (pciToSelect && (INT) pciToSelect != -1) {
     360      //DbgMsg(pszSrcFile, __LINE__, "TOP %i %i", fTopDir, maketop);
    360361      if (fTopDir || maketop) {
    361         ShowCnrRecord(hwndCnr, (PMINIRECORDCORE) pciToSelect);
     362        ShowCnrRecord(hwndCnr, (PMINIRECORDCORE) pciToSelect);
    362363      }
    363364      if (fSwitchTreeExpand && ~pciToSelect->rc.flRecordAttr & CRA_EXPANDED)
    364         WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID);
     365        WinSendMsg(hwndCnr, CM_EXPANDTREE, MPFROMP(pciToSelect), MPVOID);
    365366      if (!quickbail) {
    366367        WinSendMsg(hwndCnr,
     
    32763277          WinSetWindowText(WinWindowFromID(hwndFrame, FID_TITLEBAR), "VTree");
    32773278          FixSwitchList(hwndFrame, "VTree");
    3278           fInitialDriveScan = FALSE;
    3279           DosPostEventSem(hevInitialCnrScanComplete);
    3280           DosCloseEventSem(hevInitialCnrScanComplete);
    32813279        }
    32823280        else {
Note: See TracChangeset for help on using the changeset viewer.