[BROWSEUI] Implement toggling the folders and search band with the toolbar and make their buttons appear pressed when they are shown.

CBaseBarSite: Ask the CBaseBar to close itself when the x button is pressed.
CBaseBar: Hide the bar and inform its site that it is closing when it gets the close command.
CShellBrowser: Cache the guid of the current vertical bar and use it to report correct command status to the toolbar.
Also implement toggling the Folders, Favorites, History and search commands.
CInternetToolbar: Query the Folders and Search command status from the site so that they can be properly be shown as pressed.
This commit is contained in:
Giannis Adamopoulos
2018-10-27 11:52:04 +03:00
parent 84ae36c78d
commit a0c5cafce5
5 changed files with 103 additions and 14 deletions

View File

@@ -261,8 +261,17 @@ HRESULT STDMETHODCALLTYPE CBaseBar::Exec(const GUID *pguidCmdGroup, DWORD nCmdID
switch (nCmdID)
{
case 0:
{
// hide current band
ShowDW(0);
// Inform our site that we closed
VARIANT var;
V_VT(&var) = VT_UNKNOWN;
V_UNKNOWN(&var) = static_cast<IDeskBar *>(this);
IUnknown_Exec(fSite, CGID_Explorer, 0x22, 0, &var, NULL);
break;
}
case 2:
// switch bands
break;