Commit 7c6899ba authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

packager: Implement Activate verb for OleObject::DoVerb.

parent 04b6fc9d
...@@ -175,12 +175,26 @@ static HRESULT WINAPI OleObject_GetClipboardData(IOleObject *iface, DWORD dwRese ...@@ -175,12 +175,26 @@ static HRESULT WINAPI OleObject_GetClipboardData(IOleObject *iface, DWORD dwRese
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT do_activate_object(struct Package *This, HWND parent)
{
static const WCHAR openW[] = {'o','p','e','n',0};
ShellExecuteW(parent, openW, This->filename, NULL, NULL, SW_SHOW);
return S_OK;
}
static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpmsg, IOleClientSite *pActiveSite, static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpmsg, IOleClientSite *pActiveSite,
LONG lindex, HWND hwndParent, LPCRECT lprcPosRect) LONG lindex, HWND hwndParent, LPCRECT lprcPosRect)
{ {
struct Package *This = impl_from_IOleObject(iface); struct Package *This = impl_from_IOleObject(iface);
FIXME("(%p)->(%d)\n", This, iVerb);
return E_NOTIMPL; TRACE("(%p)->(%d)\n", This, iVerb);
switch(iVerb){
case 0:
return do_activate_object(This, hwndParent);
}
return E_INVALIDARG;
} }
static HRESULT WINAPI OleObject_EnumVerbs(IOleObject *iface, IEnumOLEVERB **ppEnumOleVerb) static HRESULT WINAPI OleObject_EnumVerbs(IOleObject *iface, IEnumOLEVERB **ppEnumOleVerb)
......
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