[SHDOCVW] CNSCBand must specify a ShowWindow command (#7268)

This commit is contained in:
Whindmar Saksit 2024-08-24 02:45:19 +02:00 committed by GitHub
parent ec653caf54
commit 29c8dc82f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,6 +170,7 @@ HRESULT CNSCBand::_ExecuteCommand(_In_ CComPtr<IContextMenu>& menu, _In_ UINT nC
CMINVOKECOMMANDINFO cmi = { sizeof(cmi) };
cmi.lpVerb = MAKEINTRESOURCEA(nCmd);
cmi.hwnd = browserWnd;
cmi.nShow = SW_SHOW;
if (::GetKeyState(VK_SHIFT) < 0)
cmi.fMask |= CMIC_MASK_SHIFT_DOWN;
if (::GetKeyState(VK_CONTROL) < 0)