Author: dquintana
Date: Fri Oct 31 18:37:40 2014
New Revision: 65158
URL:
http://svn.reactos.org/svn/reactos?rev=65158&view=rev
Log:
[BROWSEUI]
* Implement hiding the statusbar from the view menu. Based on patch by Christoph von
Wittich.
Modified:
branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp
Modified: branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/shell-experiments/dll/win32/bro…
==============================================================================
--- branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp [iso-8859-1]
(original)
+++ branches/shell-experiments/dll/win32/browseui/shellbrowser.cpp [iso-8859-1] Fri Oct 31
18:37:40 2014
@@ -3309,7 +3309,11 @@
LRESULT CShellBrowser::OnToggleStatusBarVisible(WORD wNotifyCode, WORD wID, HWND hWndCtl,
BOOL &bHandled)
{
fStatusBarVisible = !fStatusBarVisible;
- // TODO: trigger a relayout of contained items
+ if (fStatusBar)
+ {
+ ::ShowWindow(fStatusBar, fStatusBarVisible ? SW_SHOW : SW_HIDE);
+ RepositionBars();
+ }
return 0;
}