Commit ab085d66 authored by David Hedberg's avatar David Hedberg Committed by Alexandre Julliard

comdlg32: Add stub implementation of the Common Item dialogs.

parent 55c717e8
...@@ -11,6 +11,7 @@ C_SRCS = \ ...@@ -11,6 +11,7 @@ C_SRCS = \
filedlgbrowser.c \ filedlgbrowser.c \
finddlg.c \ finddlg.c \
fontdlg.c \ fontdlg.c \
itemdlg.c \
printdlg.c printdlg.c
RC_SRCS = \ RC_SRCS = \
......
...@@ -169,6 +169,10 @@ typedef struct { ...@@ -169,6 +169,10 @@ typedef struct {
#include "shlobj.h" #include "shlobj.h"
#include "shellapi.h" #include "shellapi.h"
/* Constructors */
HRESULT FileOpenDialog_Constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv);
HRESULT FileSaveDialog_Constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv);
/* ITEMIDLIST */ /* ITEMIDLIST */
extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILClone) (LPCITEMIDLIST); extern LPITEMIDLIST (WINAPI *COMDLG32_PIDL_ILClone) (LPCITEMIDLIST);
......
...@@ -260,7 +260,16 @@ static const IClassFactoryVtbl CDLGCF_Vtbl = ...@@ -260,7 +260,16 @@ static const IClassFactoryVtbl CDLGCF_Vtbl =
*/ */
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
{ {
static IClassFactoryImpl FileOpenDlgClassFactory = {{&CDLGCF_Vtbl}, FileOpenDialog_Constructor};
static IClassFactoryImpl FileSaveDlgClassFactory = {{&CDLGCF_Vtbl}, FileSaveDialog_Constructor};
TRACE("%s, %s, %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv); TRACE("%s, %s, %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
if(IsEqualGUID(&CLSID_FileOpenDialog, rclsid))
return IClassFactory_QueryInterface(&FileOpenDlgClassFactory.IClassFactory_iface, riid, ppv);
if(IsEqualGUID(&CLSID_FileSaveDialog, rclsid))
return IClassFactory_QueryInterface(&FileSaveDlgClassFactory.IClassFactory_iface, riid, ppv);
return CLASS_E_CLASSNOTAVAILABLE; return CLASS_E_CLASSNOTAVAILABLE;
} }
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