-
Notifications
You must be signed in to change notification settings - Fork 30
/
COpenFileListener.h
37 lines (29 loc) · 1.08 KB
/
COpenFileListener.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef COPENFILELISTENER_H
#define COPENFILELISTENER_H
#ifdef UNICODE
#include <Shobjidl.h>
#include "globals.h"
class COpenFileListener : public IFileDialogEvents
{
public:
COpenFileListener(lFILEINFO *pFInfoList);
~COpenFileListener();
STDMETHODIMP QueryInterface(REFIID, LPVOID FAR *);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
lFILEINFO *pFInfoList;
// IFileDialogEvents
STDMETHODIMP OnFileOk(IFileDialog* pfd);
STDMETHODIMP OnFolderChanging(IFileDialog* pfd, IShellItem* psiFolder) {return E_NOTIMPL;}
STDMETHODIMP OnFolderChange(IFileDialog* pfd) {return E_NOTIMPL;}
STDMETHODIMP OnSelectionChange(IFileDialog* pfd) {return E_NOTIMPL;}
STDMETHODIMP OnShareViolation(IFileDialog* pfd, IShellItem* psi,
FDE_SHAREVIOLATION_RESPONSE* pResponse) {return E_NOTIMPL;}
STDMETHODIMP OnTypeChange(IFileDialog* pfd) {return E_NOTIMPL;}
STDMETHODIMP OnOverwrite(IFileDialog* pfd, IShellItem* psi,
FDE_OVERWRITE_RESPONSE* pResponse) {return E_NOTIMPL;}
private:
ULONG m_cRef;
};
#endif //UNICODE
#endif