Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit f6aef4a

Browse files
committed
Merge branch 'ms/master' into unc_path_support
2 parents 471da64 + 776252d commit f6aef4a

4 files changed

Lines changed: 19 additions & 9 deletions

File tree

src/wfcomman.c

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ CreateDirWindow(
551551
return hwndT;
552552
}
553553

554+
BOOLEAN bDriveChanged = FALSE;
555+
554556
//
555557
// Are we replacing the contents of the currently active child?
556558
//
@@ -561,6 +563,7 @@ CreateDirWindow(
561563
// if not already selected, do so now
562564
if (i != SendMessage(hwndDriveList, CB_GETCURSEL, i, 0L)) {
563565
SelectToolbarDrive(i);
566+
bDriveChanged = TRUE;
564567
}
565568
break;
566569
}
@@ -579,7 +582,7 @@ CreateDirWindow(
579582
//
580583
// update the tree if necessary
581584
//
582-
;
585+
583586
if (hwndT = HasTreeWindow(hwndActive)) {
584587
SendMessage(hwndT, TC_SETDRIVE, 0, (LPARAM)(szPath));
585588
}
@@ -588,6 +591,10 @@ CreateDirWindow(
588591
// Update the status in case we are "reading"
589592
//
590593
UpdateStatus(hwndActive);
594+
if (bDriveChanged) {
595+
InvalidateRect(hwndDriveBar, NULL, TRUE);
596+
UpdateWindow(hwndDriveBar);
597+
}
591598

592599
return hwndActive;
593600
}
@@ -1163,10 +1170,10 @@ AppCommandProc(DWORD id)
11631170
break;
11641171

11651172
case IDM_CLOSEWINDOW:
1166-
{
1167-
HWND hwndActive;
1173+
{
1174+
HWND hwndActive;
11681175

1169-
hwndActive = (HWND)SendMessage(hwndMDIClient, WM_MDIGETACTIVE, 0, 0L);
1176+
hwndActive = (HWND)SendMessage(hwndMDIClient, WM_MDIGETACTIVE, 0, 0L);
11701177

11711178
SendMessage(hwndActive, FS_GETDIRECTORY, COUNTOF(szPath), (LPARAM)szPath);
11721179
if (ISUNCPATH(szPath))
@@ -1176,9 +1183,9 @@ AppCommandProc(DWORD id)
11761183

11771184
}
11781185
else
1179-
PostMessage(hwndActive, WM_CLOSE, 0, 0L);
1180-
}
1181-
break;
1186+
PostMessage(hwndActive, WM_CLOSE, 0, 0L);
1187+
}
1188+
break;
11821189

11831190
case IDM_SELECT:
11841191

src/wfgoto.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ BOOL BuildDirectoryBagOValues(BagOValues<PDNODE> *pbov, vector<PDNODE> *pNodes,
334334
// add *.* to end of path
335335
lstrcat(szPath, szStarDotStar);
336336

337-
BOOL bFound = WFFindFirst(&lfndta, szPath, ATTR_DIR);
337+
BOOL bFound = WFFindFirst(&lfndta, szPath, bIndexHiddenSystem ? ATTR_DIR | ATTR_HS : ATTR_DIR);
338338

339339
while (bFound)
340340
{
@@ -346,7 +346,7 @@ BOOL BuildDirectoryBagOValues(BagOValues<PDNODE> *pbov, vector<PDNODE> *pNodes,
346346
}
347347

348348
// for all directories at this level, insert into BagOValues
349-
// do not insert the directories '.' or '..'; or insert empty directory names (cf. issue #194)
349+
// do not insert the directories '.' or '..'; or insert empty directory names (cf. issue #194)
350350

351351
if ((lfndta.fd.dwFileAttributes & ATTR_DIR) == 0 || ISDOTDIR(lfndta.fd.cFileName) || lfndta.fd.cFileName[0] == CHAR_NULL)
352352
{

src/wfinit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ GetSettings()
218218
/* Get the flags out of the INI file. */
219219
bMinOnRun = GetPrivateProfileInt(szSettings, szMinOnRun, bMinOnRun, szTheINIFile);
220220
bIndexOnLaunch = GetPrivateProfileInt(szSettings, szIndexOnLaunch, bIndexOnLaunch, szTheINIFile);
221+
bIndexHiddenSystem = GetPrivateProfileInt(szSettings, szIndexHiddenSystem, bIndexHiddenSystem, szTheINIFile);
221222
wTextAttribs = (WORD)GetPrivateProfileInt(szSettings, szLowerCase, wTextAttribs, szTheINIFile);
222223
bStatusBar = GetPrivateProfileInt(szSettings, szStatusBar, bStatusBar, szTheINIFile);
223224
bDisableVisualStyles = GetPrivateProfileInt(szSettings, szDisableVisualStyles, bDisableVisualStyles, szTheINIFile);

src/winfile.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ JAPANEND
12361236

12371237
Extern BOOL bMinOnRun EQ( FALSE );
12381238
Extern BOOL bIndexOnLaunch EQ( TRUE );
1239+
Extern BOOL bIndexHiddenSystem EQ( FALSE );
12391240
Extern BOOL bStatusBar EQ( TRUE );
12401241

12411242
Extern BOOL bDriveBar EQ( TRUE );
@@ -1281,6 +1282,7 @@ Extern TCHAR szPunctuation[MAXPATHLEN];
12811282

12821283
Extern TCHAR szMinOnRun[] EQ( TEXT("MinOnRun") );
12831284
Extern TCHAR szIndexOnLaunch[] EQ( TEXT("IndexOnLaunch") );
1285+
Extern TCHAR szIndexHiddenSystem[] EQ( TEXT("IndexHiddenSystem") );
12841286
Extern TCHAR szStatusBar[] EQ( TEXT("StatusBar") );
12851287
Extern TCHAR szSaveSettings[] EQ( TEXT("Save Settings") );
12861288
Extern TCHAR szScrollOnExpand[] EQ( TEXT("ScrollOnExpand"));

0 commit comments

Comments
 (0)