Commit 1921ef21 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

Added some new stubs for the OLE menu descriptor methods.

parent 4d1d359c
......@@ -17,9 +17,9 @@ typedef struct tagOleMenuGroupWidths
{ LONG width[ 6 ];
} OLEMENUGROUPWIDTHS32, OLEMENUGROUPWIDTHS;
typedef struct tagOleMenuGroupWidths *LPOLEMENUGROUPWIDTHS32;
typedef struct IOleInPlaceFrame *LPOLEINPLACEFRAME;
typedef struct IOleInPlaceActiveObject *LPOLEINPLACEACTIVEOBJECT;
typedef HGLOBAL32 HOLEMENU32;
......@@ -42,4 +42,15 @@ HRESULT WINAPI DoDragDrop32(LPDATAOBJECT,
DWORD*);
#define DoDragDrop WINELIB_NAME(DoDragDrop)
HOLEMENU32 WINAPI OleCreateMenuDescriptor(HMENU32 hmenuCombined,
LPOLEMENUGROUPWIDTHS32 lpMenuWidths);
void WINAPI OleDestroyMenuDescriptor(HOLEMENU32 hmenuDescriptor);
HRESULT WINAPI OleSetMenuDescriptor(HOLEMENU32 hmenuDescriptor,
HWND32 hwndFrame,
HWND32 hwndActiveObject,
LPOLEINPLACEFRAME lpFrame,
LPOLEINPLACEACTIVEOBJECT lpActiveObject);
#endif /* __WINE_OLE2_H */
......@@ -464,6 +464,47 @@ HRESULT WINAPI OleGetClipboard32(
return E_FAIL;
}
/***********************************************************************
* OleCreateMenuDescriptor [OLE32.97]
*/
HOLEMENU32 WINAPI OleCreateMenuDescriptor(
HMENU32 hmenuCombined,
LPOLEMENUGROUPWIDTHS32 lpMenuWidths)
{
FIXME(ole,"(%x,%p),stub!\n", hmenuCombined, lpMenuWidths);
return NULL;
}
/***********************************************************************
* OleDestroyMenuDescriptor [OLE32.99]
*/
void WINAPI OleDestroyMenuDescriptor(
HOLEMENU32 hmenuDescriptor)
{
FIXME(ole,"(%x),stub!\n", (unsigned int)hmenuDescriptor);
}
/***********************************************************************
* OleSetMenuDescriptor [OLE32.129]
*/
HRESULT WINAPI OleSetMenuDescriptor(
HOLEMENU32 hmenuDescriptor,
HWND32 hwndFrame,
HWND32 hwndActiveObject,
LPOLEINPLACEFRAME lpFrame,
LPOLEINPLACEACTIVEOBJECT lpActiveObject)
{
FIXME(ole,"(%x, %x, %x, %p, %p),stub!\n",
(unsigned int)hmenuDescriptor,
hwndFrame,
hwndActiveObject,
lpFrame,
lpActiveObject);
return E_FAIL;
}
/***
* OLEDD_Initialize()
*
......
......@@ -97,9 +97,9 @@ type win32
94 stub OleCreateLink
95 stub OleCreateLinkFromData
96 stub OleCreateLinkToFile
97 stub OleCreateMenuDescriptor
97 stdcall OleCreateMenuDescriptor(long ptr) OleCreateMenuDescriptor
98 stub OleCreateStaticFromData
99 stub OleDestroyMenuDescriptor
99 stdcall OleDestroyMenuDescriptor(long) OleDestroyMenuDescriptor
100 stub OleDoAutoConvert
101 stub OleDraw
102 stub OleDuplicateData
......@@ -129,7 +129,7 @@ type win32
126 stub OleSetAutoConvert
127 stdcall OleSetClipboard(ptr) OleSetClipboard
128 stub OleSetContainedObject
129 stub OleSetMenuDescriptor
129 stdcall OleSetMenuDescriptor(long long long ptr ptr) OleSetMenuDescriptor
130 stub OleTranslateAccelerator
131 stdcall OleUninitialize() OleUninitialize
132 stub OpenOrCreateStream
......
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