wmp: Added DoVerb(OLEIVERB_HIDE) implementation.
This commit is contained in:
parent
b0f4ed187b
commit
bd95cb5404
|
@ -396,6 +396,16 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
|
||||||
case OLEIVERB_INPLACEACTIVATE:
|
case OLEIVERB_INPLACEACTIVATE:
|
||||||
TRACE("(%p)->(OLEIVERB_INPLACEACTIVATE)\n", This);
|
TRACE("(%p)->(OLEIVERB_INPLACEACTIVATE)\n", This);
|
||||||
return activate_inplace(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:
|
default:
|
||||||
FIXME("Unsupported iVerb %d\n", iVerb);
|
FIXME("Unsupported iVerb %d\n", iVerb);
|
||||||
}
|
}
|
||||||
|
|
|
@ -926,6 +926,10 @@ static void test_wmp(void)
|
||||||
|
|
||||||
test_window(hwnd);
|
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(OnShowWindow_FALSE);
|
||||||
SET_EXPECT(OnInPlaceDeactivate);
|
SET_EXPECT(OnInPlaceDeactivate);
|
||||||
hres = IOleObject_Close(oleobj, 0);
|
hres = IOleObject_Close(oleobj, 0);
|
||||||
|
|
Loading…
Reference in New Issue