mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +00:00
[EXPLORER] CTrayBandSite: Call DBID_SETWINDOWTHEME on new bands to make them use the theme of the taskbar. CORE-14176
This commit is contained in:
parent
4c23b78b5e
commit
71e66c69c1
1 changed files with 17 additions and 1 deletions
|
@ -355,7 +355,23 @@ public:
|
|||
/* FIXME: Should be delayed */
|
||||
IUnknown_Exec(punk, IID_IDeskBand, DBID_DELAYINIT, 0, NULL, NULL);
|
||||
|
||||
return m_BandSite->AddBand(punk);
|
||||
HRESULT hr = m_BandSite->AddBand(punk);
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
VARIANT vThemeName;
|
||||
V_VT(&vThemeName) = VT_BSTR;
|
||||
V_BSTR(&vThemeName) = SysAllocString(L"TaskBar");
|
||||
IUnknown_Exec(punk,
|
||||
IID_IDeskBand,
|
||||
DBID_SETWINDOWTHEME,
|
||||
0,
|
||||
&vThemeName,
|
||||
NULL);
|
||||
|
||||
SysFreeString(V_BSTR(&vThemeName));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
virtual HRESULT STDMETHODCALLTYPE EnumBands(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue