Changeset 930 for trunk/dll/dircnrs.c


Ignore:
Timestamp:
Jan 19, 2008, 2:54:06 PM (18 years ago)
Author:
John Small
Message:

Some code "cleanup" for ticket 150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dircnrs.c

    r923 r930  
    3333  22 Nov 07 GKY Use CopyPresParams to fix presparam inconsistencies in menus
    3434  10 Jan 08 SHL Sync with CfgDlgProc mods
     35  xx Jan 08 JBS Ticket 150: fix/improve save and restore of dir cnr state at FM/2 close/reopen
    3536
    3637***********************************************************************/
     
    14231424
    14241425        CNRINFO cnri;
    1425 // JBS     static int i = 0;
    1426 //             FILE * f = fopen("e:\\dev\\netlabs\\fm2\\trunk\\jbsdebug.log", "a");
    1427 //             fprintf(f, "UM_SETUP Dir: %s; Count: %d Details: %d %d %d %d\n", dcd->directory, ++i, (int)dcd->detailscrdate, (int)dcd->detailscrtime, (int)dcd->detailsladate, (int)dcd->detailsladate);
    1428 //             fclose(f);
    14291426
    14301427        RestorePresParams(hwnd, "DirCnr");
    1431 // JBS  LoadDetailsSwitches("DirCnr", dcd);
    14321428        memset(&cnri, 0, sizeof(CNRINFO));
    14331429        cnri.cb = sizeof(CNRINFO);
     
    14861482                              CMA_CXTREEINDENT | CMA_PSORTRECORD));
    14871483        SetCnrCols(hwnd, FALSE);
    1488 // JBS  AdjustCnrColsForPref(hwnd, NULL, dcd, FALSE);
    14891484        if (_beginthread(MakeObjWin, NULL, 245760, (PVOID) dcd) == -1) {
    14901485          Runtime_Error(pszSrcFile, __LINE__,
     
    20402035
    20412036      case IDM_RESORT:
    2042 //            WinSendMsg(hwnd,
    2043 //                       CM_SORTRECORD,
    2044 //                       MPFROMP(SortDirCnr),
    2045 //                       MPFROMLONG((fSyncUpdates) ? sortFlags : dcd->sortFlags));
     2037//          WinSendMsg(hwnd,
     2038//                     CM_SORTRECORD,
     2039//                     MPFROMP(SortDirCnr),
     2040//                     MPFROMLONG((fSyncUpdates) ? sortFlags : dcd->sortFlags));
    20462041        WinSendMsg(hwnd,
    20472042                   CM_SORTRECORD,
     
    21622157                              dcd->hwndLastMenu,
    21632158                              SHORT1FROMMP(mp1),
    2164 // JBS                        dcd->directory, "DirCnr", dcd, FALSE);
    21652159                              dcd->directory, NULL, dcd, FALSE);
    21662160        break;
     
    25942588        if (pci->attrFile & FILE_DIRECTORY) {
    25952589          menuHwnd = CheckMenu(hwndMainMenu, &DirMenu, DIR_POPUP);
    2596 //            WinEnableMenuItem(DirMenu,IDM_TREE,TRUE);
     2590//          WinEnableMenuItem(DirMenu,IDM_TREE,TRUE);
    25972591        }
    25982592        else
     
    34293423        dcd->hwndRestore = hwndRestore;
    34303424        dcd->dontclose = ((flags & 1) != 0);
    3431         dcd->detailslongname = detailslongname;
    3432         dcd->detailssubject = detailssubject;
    3433         dcd->detailsea = detailsea;
    3434         dcd->detailssize = detailssize;
    3435         dcd->detailsicon = detailsicon;
    3436         dcd->detailsattr = detailsattr;
    3437         dcd->detailscrdate = detailscrdate;
    3438         dcd->detailscrtime = detailscrtime;
    3439         dcd->detailslwdate = detailslwdate;
    3440         dcd->detailslwtime = detailslwtime;
    3441         dcd->detailsladate = detailsladate;
    3442         dcd->detailslatime = detailslatime;
     3425        dcd->detailslongname = detailslongname;
     3426        dcd->detailssubject = detailssubject;
     3427        dcd->detailsea = detailsea;
     3428        dcd->detailssize = detailssize;
     3429        dcd->detailsicon = detailsicon;
     3430        dcd->detailsattr = detailsattr;
     3431        dcd->detailscrdate = detailscrdate;
     3432        dcd->detailscrtime = detailscrtime;
     3433        dcd->detailslwdate = detailslwdate;
     3434        dcd->detailslwtime = detailslwtime;
     3435        dcd->detailsladate = detailsladate;
     3436        dcd->detailslatime = detailslatime;
    34433437        strcpy(dcd->directory, directory);
    34443438        add_udir(FALSE, directory);
Note: See TracChangeset for help on using the changeset viewer.