Clone of UAS2 @ https://github.com/drudgedance/uas2

commondialog.h 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #if !defined(AFX_COMMONDIALOG_H__22419D80_23A4_434E_9292_C1FE8A898CB0__INCLUDED_)
  2. #define AFX_COMMONDIALOG_H__22419D80_23A4_434E_9292_C1FE8A898CB0__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  7. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  8. // Microsoft Visual C++, your modifications will be overwritten.
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CCommonDialog1 wrapper class
  11. class CCommonDialog1 : public CWnd
  12. {
  13. protected:
  14. DECLARE_DYNCREATE(CCommonDialog1)
  15. public:
  16. CLSID const& GetClsid()
  17. {
  18. static CLSID const clsid
  19. = { 0xf9043c85, 0xf6f2, 0x101a, { 0xa3, 0xc9, 0x8, 0x0, 0x2b, 0x2f, 0x49, 0xfb } };
  20. return clsid;
  21. }
  22. virtual BOOL Create(LPCTSTR lpszClassName,
  23. LPCTSTR lpszWindowName, DWORD dwStyle,
  24. const RECT& rect,
  25. CWnd* pParentWnd, UINT nID,
  26. CCreateContext* pContext = NULL)
  27. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  28. BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  29. const RECT& rect, CWnd* pParentWnd, UINT nID,
  30. CFile* pPersist = NULL, BOOL bStorage = FALSE,
  31. BSTR bstrLicKey = NULL)
  32. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  33. pPersist, bStorage, bstrLicKey); }
  34. // Attributes
  35. public:
  36. // Operations
  37. public:
  38. CString GetFileName();
  39. void SetFileName(LPCTSTR lpszNewValue);
  40. CString GetDialogTitle();
  41. void SetDialogTitle(LPCTSTR lpszNewValue);
  42. CString GetFilter();
  43. void SetFilter(LPCTSTR lpszNewValue);
  44. CString GetDefaultExt();
  45. void SetDefaultExt(LPCTSTR lpszNewValue);
  46. CString GetInitDir();
  47. void SetInitDir(LPCTSTR lpszNewValue);
  48. unsigned long GetColor();
  49. void SetColor(unsigned long newValue);
  50. long GetFlags();
  51. void SetFlags(long nNewValue);
  52. CString GetFontName();
  53. void SetFontName(LPCTSTR lpszNewValue);
  54. BOOL GetFontBold();
  55. void SetFontBold(BOOL bNewValue);
  56. BOOL GetFontItalic();
  57. void SetFontItalic(BOOL bNewValue);
  58. BOOL GetFontStrikeThru();
  59. void SetFontStrikeThru(BOOL bNewValue);
  60. BOOL GetFontUnderLine();
  61. void SetFontUnderLine(BOOL bNewValue);
  62. short GetFromPage();
  63. void SetFromPage(short nNewValue);
  64. short GetToPage();
  65. void SetToPage(short nNewValue);
  66. short GetMin();
  67. void SetMin(short nNewValue);
  68. short GetMax();
  69. void SetMax(short nNewValue);
  70. short GetCopies();
  71. void SetCopies(short nNewValue);
  72. BOOL GetCancelError();
  73. void SetCancelError(BOOL bNewValue);
  74. CString GetHelpFile();
  75. void SetHelpFile(LPCTSTR lpszNewValue);
  76. short GetHelpCommand();
  77. void SetHelpCommand(short nNewValue);
  78. CString GetHelpKey();
  79. void SetHelpKey(LPCTSTR lpszNewValue);
  80. BOOL GetPrinterDefault();
  81. void SetPrinterDefault(BOOL bNewValue);
  82. short GetFilterIndex();
  83. void SetFilterIndex(short nNewValue);
  84. long GetHelpContext();
  85. void SetHelpContext(long nNewValue);
  86. float GetFontSize();
  87. void SetFontSize(float newValue);
  88. short GetAction();
  89. void SetAction(short nNewValue);
  90. short GetMaxFileSize();
  91. void SetMaxFileSize(short nNewValue);
  92. long GetHDC();
  93. void SetHDC(long nNewValue);
  94. CString GetFileTitle();
  95. void SetFileTitle(LPCTSTR lpszNewValue);
  96. void ShowOpen();
  97. void ShowSave();
  98. void ShowColor();
  99. void ShowFont();
  100. void ShowPrinter();
  101. void ShowHelp();
  102. long GetOrientation();
  103. void SetOrientation(long nNewValue);
  104. };
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  107. #endif // !defined(AFX_COMMONDIALOG_H__22419D80_23A4_434E_9292_C1FE8A898CB0__INCLUDED_)