Added some new stubs for the OLE menu descriptor methods.

This commit is contained in:
Francis Beaudet 1999-02-20 16:05:50 +00:00 committed by Alexandre Julliard
parent 4d1d359c2b
commit 1921ef213a
3 changed files with 57 additions and 5 deletions

View File

@ -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 */

View File

@ -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()
*

View File

@ -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