ReactOS  0.4.14-dev-1034-g1e60116
oledlg_main.c
Go to the documentation of this file.
1 /*
2  * OLEDLG library
3  *
4  * Copyright 1998 Patrik Stridvall
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 #define COBJMACROS
22 
23 #include <stdarg.h>
24 
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winerror.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "oledlg.h"
31 #include "ole2.h"
32 #include "oledlg_private.h"
33 #include "resource.h"
34 
35 #include "wine/debug.h"
36 
38 
40 
49 
52 
53 static void register_clipboard_formats(void)
54 {
55  /* These used to be declared in olestd.h, but that seems to have been removed from the api */
56  static const WCHAR CF_EMBEDSOURCEW[] = { 'E','m','b','e','d',' ','S','o','u','r','c','e',0 };
57  static const WCHAR CF_EMBEDDEDOBJECTW[] = { 'E','m','b','e','d','d','e','d',' ','O','b','j','e','c','t',0 };
58  static const WCHAR CF_LINKSOURCEW[] = { 'L','i','n','k',' ','S','o','u','r','c','e',0 };
59  static const WCHAR CF_OBJECTDESCRIPTORW[] = { 'O','b','j','e','c','t',' ','D','e','s','c','r','i','p','t','o','r',0 };
60  static const WCHAR CF_LINKSRCDESCRIPTORW[] = { 'L','i','n','k',' ','S','o','u','r','c','e',' ','D','e','s','c','r','i','p','t','o','r',0 };
61  static const WCHAR CF_OWNERLINKW[] = { 'O','w','n','e','r','L','i','n','k',0 };
62  static const WCHAR CF_FILENAMEW[] = { 'F','i','l','e','N','a','m','e',0 };
63  static const WCHAR CF_FILENAMEWW[] = { 'F','i','l','e','N','a','m','e','W',0 };
64 
65  /* Load in the same order as native to make debugging easier */
66  cf_object_descriptor = RegisterClipboardFormatW(CF_OBJECTDESCRIPTORW);
67  cf_link_src_descriptor = RegisterClipboardFormatW(CF_LINKSRCDESCRIPTORW);
68  cf_embed_source = RegisterClipboardFormatW(CF_EMBEDSOURCEW);
69  cf_embedded_object = RegisterClipboardFormatW(CF_EMBEDDEDOBJECTW);
70  cf_link_source = RegisterClipboardFormatW(CF_LINKSOURCEW);
71  cf_ownerlink = RegisterClipboardFormatW(CF_OWNERLINKW);
72  cf_filename = RegisterClipboardFormatW(CF_FILENAMEW);
73  cf_filenamew = RegisterClipboardFormatW(CF_FILENAMEWW);
74 }
75 
76 static void register_messages(void)
77 {
80 }
81 
82 /***********************************************************************
83  * DllMain
84  */
86 {
87  TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, fImpLoad);
88 
89  switch(fdwReason) {
90  case DLL_PROCESS_ATTACH:
91  DisableThreadLibraryCalls(hinstDLL);
92  OLEDLG_hInstance = hinstDLL;
95  break;
96  }
97  return TRUE;
98 }
99 
100 
101 /***********************************************************************
102  * OleUIAddVerbMenuA (OLEDLG.1)
103  */
105  HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
106  BOOL addConvert, UINT idConvert, HMENU *lphMenu)
107 {
108  WCHAR *shorttypeW = NULL;
109  BOOL ret;
110 
111  TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_a(shorttype),
112  hMenu, uPos, uIDVerbMin, uIDVerbMax, addConvert, idConvert, lphMenu);
113 
114  if (shorttype)
115  {
116  INT len = MultiByteToWideChar(CP_ACP, 0, shorttype, -1, NULL, 0);
117  shorttypeW = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
118  if (shorttypeW)
119  MultiByteToWideChar(CP_ACP, 0, shorttype, -1, shorttypeW, len);
120  }
121 
122  ret = OleUIAddVerbMenuW(object, shorttypeW, hMenu, uPos, uIDVerbMin, uIDVerbMax,
123  addConvert, idConvert, lphMenu);
124  HeapFree(GetProcessHeap(), 0, shorttypeW);
125  return ret;
126 }
127 
128 static inline BOOL is_verb_in_range(const OLEVERB *verb, UINT idmin, UINT idmax)
129 {
130  if (idmax == 0) return TRUE;
131  return (verb->lVerb + idmin <= idmax);
132 }
133 
134 static HRESULT get_next_insertable_verb(IEnumOLEVERB *enumverbs, UINT idmin, UINT idmax, OLEVERB *verb)
135 {
136  memset(verb, 0, sizeof(*verb));
137 
138  while (IEnumOLEVERB_Next(enumverbs, 1, verb, NULL) == S_OK) {
139  if (is_verb_in_range(verb, idmin, idmax) && (verb->grfAttribs & OLEVERBATTRIB_ONCONTAINERMENU))
140  return S_OK;
141 
142  CoTaskMemFree(verb->lpszVerbName);
143  memset(verb, 0, sizeof(*verb));
144  }
145 
146  return S_FALSE;
147 }
148 
149 static void insert_verb_to_menu(HMENU menu, UINT idmin, const OLEVERB *verb)
150 {
151  InsertMenuW(menu, ~0, verb->fuFlags | MF_BYPOSITION | MF_STRING, verb->lVerb + idmin, verb->lpszVerbName);
152 }
153 
154 /***********************************************************************
155  * OleUIAddVerbMenuW (OLEDLG.14)
156  */
158  HMENU hMenu, UINT uPos, UINT idmin, UINT idmax, BOOL addConvert, UINT idConvert, HMENU *ret_submenu)
159 {
161  LPOLESTR usertype = NULL;
162  OLEVERB firstverb, verb;
163  WCHAR *objecttype;
164  WCHAR resstrW[32]; /* should be enough */
165  DWORD_PTR args[2];
166  BOOL singleverb;
167  HMENU submenu;
168  WCHAR *str;
169 
170  TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_w(shorttype),
171  hMenu, uPos, idmin, idmax, addConvert, idConvert, ret_submenu);
172 
173  if (ret_submenu)
174  *ret_submenu = NULL;
175 
176  if (!hMenu || !ret_submenu)
177  return FALSE;
178 
179  /* check if we can get verbs at all */
180  if (object)
181  IOleObject_EnumVerbs(object, &enumverbs);
182 
184  /* no object, or object without enumeration support */
185  if (!object || !enumverbs) {
186  RemoveMenu(hMenu, uPos, MF_BYPOSITION);
187  InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING|MF_GRAYED, idmin, resstrW);
188  return FALSE;
189  }
190 
191  /* root entry string */
192  if (!shorttype && (IOleObject_GetUserType(object, USERCLASSTYPE_SHORT, &usertype) == S_OK))
193  objecttype = usertype;
194  else
195  objecttype = (WCHAR*)shorttype;
196 
197  /* iterate through verbs */
198 
199  /* find first suitable verb */
200  get_next_insertable_verb(enumverbs, idmin, idmax, &firstverb);
201  singleverb = get_next_insertable_verb(enumverbs, idmin, idmax, &verb) != S_OK;
202 
203  if (singleverb && !addConvert) {
205 
206  args[0] = (DWORD_PTR)firstverb.lpszVerbName;
207  args[1] = (DWORD_PTR)objecttype;
208 
210  resstrW, 0, 0, (WCHAR*)&str, 0, (__ms_va_list*)args);
211 
212  RemoveMenu(hMenu, uPos, MF_BYPOSITION);
213  InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_STRING, idmin, str);
214  CoTaskMemFree(firstverb.lpszVerbName);
215  HeapFree(GetProcessHeap(), 0, str);
216  IEnumOLEVERB_Release(enumverbs);
217  CoTaskMemFree(usertype);
218  return TRUE;
219  }
220 
221  submenu = CreatePopupMenu();
222  insert_verb_to_menu(submenu, idmin, &firstverb);
223  CoTaskMemFree(firstverb.lpszVerbName);
224 
225  if (!singleverb) {
226  insert_verb_to_menu(submenu, idmin, &verb);
227  CoTaskMemFree(verb.lpszVerbName);
228  }
229 
230  while (get_next_insertable_verb(enumverbs, idmin, idmax, &verb) == S_OK) {
231  insert_verb_to_menu(submenu, idmin, &verb);
232  CoTaskMemFree(verb.lpszVerbName);
233  }
234 
235  /* convert verb is at the bottom of a popup, separated from verbs */
236  if (addConvert) {
238  InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_SEPARATOR, 0, NULL);
239  InsertMenuW(submenu, ~0, MF_BYPOSITION|MF_STRING, idConvert, resstrW);
240  }
241 
242  if (submenu)
243  *ret_submenu = submenu;
244 
245  /* now submenu is ready, add root entry to original menu, attach submenu */
247 
248  args[0] = (DWORD_PTR)objecttype;
250  resstrW, 0, 0, (WCHAR*)&str, 0, (__ms_va_list*)args);
251 
252  InsertMenuW(hMenu, uPos, MF_BYPOSITION|MF_POPUP|MF_STRING, (UINT_PTR)submenu, str);
253  HeapFree(GetProcessHeap(), 0, str);
254  IEnumOLEVERB_Release(enumverbs);
255  CoTaskMemFree(usertype);
256  return TRUE;
257 }
258 
259 /***********************************************************************
260  * OleUICanConvertOrActivateAs (OLEDLG.2)
261  */
263  REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
264 {
265  FIXME("(%p, %d, %hd): stub\n",
266  rClsid, fIsLinkedObject, wFormat
267  );
269  return FALSE;
270 }
271 
272 /***********************************************************************
273  * OleUIInsertObjectW (OLEDLG.20)
274  */
276 {
277  FIXME("(%p): stub\n", lpOleUIInsertObject);
279  return OLEUI_FALSE;
280 }
281 
282 /***********************************************************************
283  * OleUIEditLinksA (OLEDLG.5)
284  */
286 {
287  FIXME("(%p): stub\n", lpOleUIEditLinks);
289  return OLEUI_FALSE;
290 }
291 
292 /***********************************************************************
293  * OleUIEditLinksW (OLEDLG.19)
294  */
296 {
297  FIXME("(%p): stub\n", lpOleUIEditLinks);
299  return OLEUI_FALSE;
300 }
301 
302 /***********************************************************************
303  * OleUIChangeIconA (OLEDLG.6)
304  */
306  LPOLEUICHANGEICONA lpOleUIChangeIcon)
307 {
308  FIXME("(%p): stub\n", lpOleUIChangeIcon);
310  return OLEUI_FALSE;
311 }
312 
313 /***********************************************************************
314  * OleUIChangeIconW (OLEDLG.16)
315  */
317  LPOLEUICHANGEICONW lpOleUIChangeIcon)
318 {
319  FIXME("(%p): stub\n", lpOleUIChangeIcon);
321  return OLEUI_FALSE;
322 }
323 
324 /***********************************************************************
325  * OleUIConvertA (OLEDLG.7)
326  */
328 {
329  FIXME("(%p): stub\n", lpOleUIConvert);
331  return OLEUI_FALSE;
332 }
333 
334 /***********************************************************************
335  * OleUIConvertW (OLEDLG.18)
336  */
338 {
339  FIXME("(%p): stub\n", lpOleUIConvert);
341  return OLEUI_FALSE;
342 }
343 
344 /***********************************************************************
345  * OleUIBusyA (OLEDLG.8)
346  */
348 {
349  FIXME("(%p): stub\n", lpOleUIBusy);
351  return OLEUI_FALSE;
352 }
353 
354 /***********************************************************************
355  * OleUIBusyW (OLEDLG.15)
356  */
358 {
359  FIXME("(%p): stub\n", lpOleUIBusy);
361  return OLEUI_FALSE;
362 }
363 
364 /***********************************************************************
365  * OleUIUpdateLinksA (OLEDLG.9)
366  */
368  LPOLEUILINKCONTAINERA lpOleUILinkCntr,
369  HWND hwndParent, LPSTR lpszTitle, INT cLinks)
370 {
371  FIXME("(%p, %p, %s, %d): stub\n",
372  lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
373  );
375  return FALSE;
376 }
377 
378 /***********************************************************************
379  * OleUIUpdateLinksW (OLEDLG.23)
380  */
382  LPOLEUILINKCONTAINERW lpOleUILinkCntr,
383  HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
384 {
385  FIXME("(%p, %p, %s, %d): stub\n",
386  lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
387  );
389  return FALSE;
390 }
391 
392 /***********************************************************************
393  * OleUIPromptUserA (OLEDLG.10)
394  */
396  INT nTemplate, HWND hwndParent, ...)
397 {
398  FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
400  return OLEUI_FALSE;
401 }
402 
403 /***********************************************************************
404  * OleUIPromptUserW (OLEDLG.13)
405  */
407  INT nTemplate, HWND hwndParent, ...)
408 {
409  FIXME("(%d, %p, ...): stub\n", nTemplate, hwndParent);
411  return OLEUI_FALSE;
412 }
413 
414 /***********************************************************************
415  * OleUIObjectPropertiesA (OLEDLG.11)
416  */
418  LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
419 {
420  FIXME("(%p): stub\n", lpOleUIObjectProps);
422  return OLEUI_FALSE;
423 }
424 
425 /***********************************************************************
426  * OleUIObjectPropertiesW (OLEDLG.21)
427  */
429  LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
430 {
431  FIXME("(%p): stub\n", lpOleUIObjectProps);
433  return OLEUI_FALSE;
434 }
435 
436 /***********************************************************************
437  * OleUIChangeSourceA (OLEDLG.12)
438  */
440  LPOLEUICHANGESOURCEA lpOleUIChangeSource)
441 {
442  FIXME("(%p): stub\n", lpOleUIChangeSource);
444  return OLEUI_FALSE;
445 }
446 
447 /***********************************************************************
448  * OleUIChangeSourceW (OLEDLG.17)
449  */
451  LPOLEUICHANGESOURCEW lpOleUIChangeSource)
452 {
453  FIXME("(%p): stub\n", lpOleUIChangeSource);
455  return OLEUI_FALSE;
456 }
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
Definition: oledlg_main.c:85
UINT WINAPI OleUIChangeSourceA(LPOLEUICHANGESOURCEA lpOleUIChangeSource)
Definition: oledlg_main.c:439
INT WINAPIV OleUIPromptUserW(INT nTemplate, HWND hwndParent,...)
Definition: oledlg_main.c:406
UINT WINAPI OleUIChangeSourceW(LPOLEUICHANGESOURCEW lpOleUIChangeSource)
Definition: oledlg_main.c:450
#define TRUE
Definition: types.h:120
UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
Definition: oledlg_main.c:347
#define IDS_VERBMENU_OBJECT
Definition: resource.h:50
static const WCHAR SZOLEUI_MSG_HELPW[]
Definition: oledlg.h:120
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:420
#define DWORD_PTR
Definition: treelist.c:76
static static const char __ms_va_list
Definition: printf.c:76
UINT WINAPI OleUIChangeIconW(LPOLEUICHANGEICONW lpOleUIChangeIcon)
Definition: oledlg_main.c:316
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL WINAPI InsertMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)
WINE_DEFAULT_DEBUG_CHANNEL(ole)
UINT oleui_msg_enddialog
Definition: oledlg_main.c:51
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
#define REFCLSID
Definition: guiddef.h:117
#define CP_ACP
Definition: compat.h:99
#define FORMAT_MESSAGE_ARGUMENT_ARRAY
Definition: winbase.h:405
#define FORMAT_MESSAGE_FROM_STRING
Definition: winbase.h:402
#define MF_STRING
Definition: winuser.h:138
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
UINT cf_ownerlink
Definition: oledlg_main.c:46
char * LPSTR
Definition: xmlstorage.h:182
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPWSTR lpBuffer, DWORD nSize, __ms_va_list *args)
Definition: format_msg.c:583
static LPOLESTR
Definition: stg_prop.c:27
UINT cf_link_src_descriptor
Definition: oledlg_main.c:45
Definition: match.c:390
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int32_t INT
Definition: typedefs.h:57
static IEnumOLEVERB enumverbs
Definition: main.c:112
BOOL WINAPI OleUIUpdateLinksW(LPOLEUILINKCONTAINERW lpOleUILinkCntr, HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
Definition: oledlg_main.c:381
UINT cf_filename
Definition: oledlg_main.c:47
struct IOleUILinkContainerW * LPOLEUILINKCONTAINERW
Definition: oledlg.h:43
static BOOL is_verb_in_range(const OLEVERB *verb, UINT idmin, UINT idmax)
Definition: oledlg_main.c:128
UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
Definition: oledlg_main.c:295
static void insert_verb_to_menu(HMENU menu, UINT idmin, const OLEVERB *verb)
Definition: oledlg_main.c:149
BOOL WINAPI OleUICanConvertOrActivateAs(REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
Definition: oledlg_main.c:262
unsigned int BOOL
Definition: ntddk_ex.h:94
#define MF_BYPOSITION
Definition: winuser.h:203
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
Definition: winbase.h:400
#define S_FALSE
Definition: winerror.h:2357
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
static HWND hwndParent
Definition: cryptui.c:300
#define MF_SEPARATOR
Definition: winuser.h:137
const char * LPCSTR
Definition: xmlstorage.h:183
UINT WINAPI OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)
Definition: oledlg_main.c:357
UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
Definition: oledlg_main.c:285
#define TRACE(s)
Definition: solgame.cpp:4
UINT cf_filenamew
Definition: oledlg_main.c:48
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
Definition: oledlg_main.c:327
static HRESULT get_next_insertable_verb(IEnumOLEVERB *enumverbs, UINT idmin, UINT idmax, OLEVERB *verb)
Definition: oledlg_main.c:134
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL WINAPI OleUIUpdateLinksA(LPOLEUILINKCONTAINERA lpOleUILinkCntr, HWND hwndParent, LPSTR lpszTitle, INT cLinks)
Definition: oledlg_main.c:367
#define debugstr_a
Definition: kernel32.h:31
UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
Definition: oledlg_main.c:337
LONG HRESULT
Definition: typedefs.h:78
#define WINAPI
Definition: msvc.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
#define IDS_VERBMENU_OBJECT_WITH_NAME
Definition: resource.h:49
unsigned long DWORD
Definition: ntddk_ex.h:95
#define SetLastError(x)
Definition: compat.h:417
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
UINT cf_object_descriptor
Definition: oledlg_main.c:44
int ret
#define MF_POPUP
Definition: winuser.h:136
UINT WINAPI OleUIObjectPropertiesW(LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
Definition: oledlg_main.c:428
UINT oleui_msg_help
Definition: oledlg_main.c:50
GLenum GLsizei len
Definition: glext.h:6722
uint32_t DWORD_PTR
Definition: typedefs.h:64
#define WINAPIV
Definition: sdbpapi.h:64
INT WINAPIV OleUIPromptUserA(INT nTemplate, HWND hwndParent,...)
Definition: oledlg_main.c:395
HINSTANCE OLEDLG_hInstance
Definition: oledlg_main.c:39
static const WCHAR SZOLEUI_MSG_ENDDIALOGW[]
Definition: oledlg.h:121
UINT WINAPI RegisterWindowMessageW(_In_ LPCWSTR)
#define S_OK
Definition: intsafe.h:59
DWORD LPVOID fImpLoad
Definition: misc.cpp:155
#define ARRAY_SIZE(a)
Definition: main.h:24
UINT cf_embed_source
Definition: oledlg_main.c:41
BOOL WINAPI OleUIAddVerbMenuA(IOleObject *object, LPCSTR shorttype, HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax, BOOL addConvert, UINT idConvert, HMENU *lphMenu)
Definition: oledlg_main.c:104
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
Definition: oledlg_main.c:275
#define OLEUI_FALSE
Definition: oledlg.h:61
unsigned int UINT
Definition: ndis.h:50
#define MultiByteToWideChar
Definition: compat.h:100
UINT cf_embedded_object
Definition: oledlg_main.c:42
static void register_clipboard_formats(void)
Definition: oledlg_main.c:53
HMENU WINAPI CreatePopupMenu(void)
Definition: menu.c:846
UINT cf_link_source
Definition: oledlg_main.c:43
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
UINT WINAPI OleUIChangeIconA(LPOLEUICHANGEICONA lpOleUIChangeIcon)
Definition: oledlg_main.c:305
#define MF_GRAYED
Definition: winuser.h:129
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define IDS_VERBMENU_CONVERT
Definition: resource.h:47
#define memset(x, y, z)
Definition: compat.h:39
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
struct IOleUILinkContainerA * LPOLEUILINKCONTAINERA
Definition: oledlg.h:42
#define HeapFree(x, y, z)
Definition: compat.h:402
#define IDS_VERBMENU_SINGLEVERB_OBJECT
Definition: resource.h:48
static void register_messages(void)
Definition: oledlg_main.c:76
BOOL WINAPI OleUIAddVerbMenuW(IOleObject *object, LPCWSTR shorttype, HMENU hMenu, UINT uPos, UINT idmin, UINT idmax, BOOL addConvert, UINT idConvert, HMENU *ret_submenu)
Definition: oledlg_main.c:157
UINT WINAPI OleUIObjectPropertiesA(LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
Definition: oledlg_main.c:417