Commit bd95cb54 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wmp: Added DoVerb(OLEIVERB_HIDE) implementation.

parent b0f4ed18
......@@ -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);
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment