wmp: Added DoVerb(OLEIVERB_HIDE) implementation.

This commit is contained in:
Jacek Caban 2014-02-24 13:03:24 +01:00 committed by Alexandre Julliard
parent b0f4ed187b
commit bd95cb5404
2 changed files with 14 additions and 0 deletions

View File

@ -396,6 +396,16 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
case OLEIVERB_INPLACEACTIVATE:
TRACE("(%p)->(OLEIVERB_INPLACEACTIVATE)\n", This);
return activate_inplace(This);
case OLEIVERB_HIDE:
if(!This->hwnd) {
FIXME("No window to hide\n");
return E_UNEXPECTED;
}
ShowWindow(This->hwnd, SW_HIDE);
return S_OK;
default:
FIXME("Unsupported iVerb %d\n", iVerb);
}

View File

@ -926,6 +926,10 @@ static void test_wmp(void)
test_window(hwnd);
hres = IOleObject_DoVerb(oleobj, OLEIVERB_HIDE, NULL, &ClientSite, 0, container_hwnd, &pos);
ok(hres == S_OK, "DoVerb failed: %08x\n", hres);
ok(!IsWindowVisible(hwnd), "Window is visible\n");
SET_EXPECT(OnShowWindow_FALSE);
SET_EXPECT(OnInPlaceDeactivate);
hres = IOleObject_Close(oleobj, 0);