Changeset 245 for trunk/dll/misc.c
- Timestamp:
- Aug 13, 2005, 10:58:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/misc.c
r231 r245 14 14 07 Jun 05 SHL Drop obsoletes 15 15 24 Jul 05 SHL Beautify 16 24 Jul 05 SHL Correct longname display option 16 17 17 18 ***********************************************************************/ … … 367 368 CHAR FileSystem[CCHMAXPATH]; 368 369 INT x; 369 BOOL showem, showemA, *bool; 370 BOOL hasCreateDT; 371 BOOL hasAccessDT; 372 BOOL hasLongNames; 373 BOOL *pBool; 370 374 371 375 if (!directory || !*directory) … … 376 380 if (!stricmp(FileSystem, HPFS) || 377 381 !stricmp(FileSystem, JFS) || 378 !stricmp(FileSystem, CDFS) ||379 382 !stricmp(FileSystem, FAT32) || 380 383 !stricmp(FileSystem, HPFS386)) 381 384 { 382 showem = TRUE; 383 showemA = TRUE; 385 hasCreateDT = TRUE; 386 hasAccessDT = TRUE; 387 hasLongNames = TRUE; 384 388 } 385 389 else if (!strcmp(FileSystem, CDFS)) 386 390 { 387 showem = TRUE; 388 showemA = FALSE; 391 hasCreateDT = TRUE; 392 hasAccessDT = FALSE; 393 hasLongNames = FALSE; 389 394 } 390 395 else 391 showem = showemA = FALSE; 396 { 397 // Assume FAT 398 hasCreateDT = FALSE; 399 hasAccessDT = FALSE; 400 hasLongNames = FALSE; 401 } 392 402 } 393 403 else 394 404 { 395 /* assume FAT */ 396 showem = showemA = FALSE; 397 } 398 bool = (dcd) ? &dcd -> detailsladate : &detailsladate; 405 // Assume FAT 406 hasCreateDT = FALSE; 407 hasAccessDT = FALSE; 408 hasLongNames = FALSE; 409 } 410 pBool = (dcd) ? &dcd -> detailsladate : &detailsladate; 399 411 AdjustCnrColVis(hwndCnr, GetPString(IDS_LADATE), 400 (* bool) ? showemA: FALSE, FALSE);401 bool = (dcd) ? &dcd -> detailslatime : &detailslatime;412 (*pBool) ? hasAccessDT : FALSE, FALSE); 413 pBool = (dcd) ? &dcd -> detailslatime : &detailslatime; 402 414 AdjustCnrColVis(hwndCnr, GetPString(IDS_LATIME), 403 (* bool) ? showemA: FALSE, FALSE);404 bool = (dcd) ? &dcd -> detailscrdate : &detailscrdate;415 (*pBool) ? hasAccessDT : FALSE, FALSE); 416 pBool = (dcd) ? &dcd -> detailscrdate : &detailscrdate; 405 417 AdjustCnrColVis(hwndCnr, GetPString(IDS_CRDATE), 406 (* bool) ? showem: FALSE, FALSE);407 bool = (dcd) ? &dcd -> detailscrtime : &detailscrtime;418 (*pBool) ? hasCreateDT : FALSE, FALSE); 419 pBool = (dcd) ? &dcd -> detailscrtime : &detailscrtime; 408 420 AdjustCnrColVis(hwndCnr, GetPString(IDS_CRTIME), 409 (* bool) ? showem: FALSE, FALSE);410 bool = (dcd) ? &dcd -> detailslongname : &detailslongname;421 (*pBool) ? hasCreateDT : FALSE, FALSE); 422 pBool = (dcd) ? &dcd -> detailslongname : &detailslongname; 411 423 AdjustCnrColVis(hwndCnr, GetPString(IDS_LNAME), 412 (* bool) ? !showem: FALSE, FALSE);424 (*pBool) ? hasLongNames : FALSE, FALSE); 413 425 WinSendMsg(hwndCnr, 414 426 CM_INVALIDATEDETAILFIELDINFO,
Note:
See TracChangeset
for help on using the changeset viewer.