Ignore:
Timestamp:
Nov 13, 2007, 12:25:28 AM (18 years ago)
Author:
John Small
Message:

A "first draft" of code to address ticket 150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ticket_150/dll/dircnrs.c

    r847 r869  
    14191419
    14201420        CNRINFO cnri;
     1421//         static int i = 0;
     1422//             FILE * f = fopen("e:\\dev\\netlabs\\fm2\\trunk\\jbsdebug.log", "a");
     1423//             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);
     1424//             fclose(f);
    14211425
    14221426        RestorePresParams(hwnd, "DirCnr");
    1423         LoadDetailsSwitches("DirCnr", dcd);
     1427//      LoadDetailsSwitches("DirCnr", dcd);
    14241428        memset(&cnri, 0, sizeof(CNRINFO));
    14251429        cnri.cb = sizeof(CNRINFO);
     
    14781482                              CMA_CXTREEINDENT | CMA_PSORTRECORD));
    14791483        SetCnrCols(hwnd, FALSE);
    1480         AdjustCnrColsForPref(hwnd, NULL, dcd, FALSE);
     1484//      AdjustCnrColsForPref(hwnd, NULL, dcd, FALSE);
    14811485        if (_beginthread(MakeObjWin, NULL, 245760, (PVOID) dcd) == -1) {
    14821486          Runtime_Error(pszSrcFile, __LINE__,
     
    14951499      SayView(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    14961500                              DIR_VIEW), dcd->flWindowAttr);
     1501    }
     1502    else {
     1503      PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID);
     1504      return 0;
     1505    }
     1506    return 0;
     1507
     1508  case UM_SETUP2:
     1509    if (dcd)
     1510    {
     1511      AdjustCnrColsForPref(hwnd, NULL, dcd, FALSE);
    14971512    }
    14981513    else {
     
    21352150                              dcd->hwndLastMenu,
    21362151                              SHORT1FROMMP(mp1),
    2137                               dcd->directory, "DirCnr", dcd, FALSE);
     2152//                            dcd->directory, "DirCnr", dcd, FALSE);
     2153                              dcd->directory, NULL, dcd, FALSE);
    21382154        break;
    21392155
     
    33943410        dcd->hwndRestore = hwndRestore;
    33953411        dcd->dontclose = ((flags & 1) != 0);
     3412        dcd->detailslongname = detailslongname;
     3413        dcd->detailssubject = detailssubject;
     3414        dcd->detailsea = detailsea;
     3415        dcd->detailssize = detailssize;
     3416        dcd->detailsicon = detailsicon;
     3417        dcd->detailsattr = detailsattr;
     3418        dcd->detailscrdate = detailscrdate;
     3419        dcd->detailscrtime = detailscrtime;
     3420        dcd->detailslwdate = detailslwdate;
     3421        dcd->detailslwtime = detailslwtime;
     3422        dcd->detailsladate = detailsladate;
     3423        dcd->detailslatime = detailslatime;
    33963424        strcpy(dcd->directory, directory);
    33973425        add_udir(FALSE, directory);
Note: See TracChangeset for help on using the changeset viewer.