mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user