Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.9 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1999.
  5. //
  6. // File: CommonDialog.h
  7. //
  8. // Contents: interface definition for ICommonDialog
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef _NUSRMGR_COMMONDIALOG_H_
  12. #define _NUSRMGR_COMMONDIALOG_H_
  13. class ATL_NO_VTABLE CCommonDialog :
  14. public CComObjectRootEx<CComSingleThreadModel>,
  15. public IDispatchImpl<ICommonDialog, &IID_ICommonDialog, &LIBID_NUSRMGRLib>,
  16. public CComCoClass<CCommonDialog, &CLSID_CommonDialog>
  17. {
  18. public:
  19. CCommonDialog(void)
  20. : _hwndOwner(NULL), _dwFlags(0), _dwFilterIndex(0),
  21. _strFilter(NULL), _strFileName(NULL), _strInitialDir(NULL)
  22. {}
  23. ~CCommonDialog() {}
  24. DECLARE_REGISTRY_RESOURCEID((UINT)0)
  25. BEGIN_COM_MAP(CCommonDialog)
  26. COM_INTERFACE_ENTRY(ICommonDialog)
  27. COM_INTERFACE_ENTRY2(IDispatch, ICommonDialog)
  28. END_COM_MAP()
  29. // *** ICommonDialog ***
  30. STDMETHODIMP get_Filter(BSTR* pbstrFilter);
  31. STDMETHODIMP put_Filter(BSTR bstrFilter);
  32. STDMETHODIMP get_FilterIndex(UINT* puiFilterIndex);
  33. STDMETHODIMP put_FilterIndex(UINT uiFilterIndex);
  34. STDMETHODIMP get_FileName(BSTR* pbstrFilter);
  35. STDMETHODIMP put_FileName(BSTR bstrFilter);
  36. STDMETHODIMP get_Flags(UINT* puiFlags);
  37. STDMETHODIMP put_Flags(UINT uiFlags);
  38. STDMETHODIMP put_Owner(VARIANT varOwner);
  39. STDMETHODIMP get_InitialDir(BSTR* pbstrInitialDir);
  40. STDMETHODIMP put_InitialDir(BSTR bstrInitialDir);
  41. STDMETHODIMP ShowOpen(VARIANT_BOOL *pbSuccess);
  42. private:
  43. // private member variables
  44. HWND _hwndOwner;
  45. DWORD _dwFlags;
  46. DWORD _dwFilterIndex;
  47. CComBSTR _strFilter;
  48. CComBSTR _strFileName;
  49. CComBSTR _strInitialDir;
  50. };
  51. #endif // _NUSRMGR_COMMONDIALOG_H_