aduiDialog.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef _aduiDialog_h
  11. #define _aduiDialog_h
  12. #pragma pack (push, 8)
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. #ifndef _ADESK_MAC_
  17. /////////////////////////////////////////////////////////////////////////////
  18. class ADUI_PORT CAdUiDialog : public CAdUiBaseDialog {
  19. DECLARE_DYNAMIC(CAdUiDialog);
  20. public:
  21. CAdUiDialog (
  22. UINT idd,
  23. CWnd *pParent=NULL,
  24. HINSTANCE hDialogResource=NULL
  25. );
  26. virtual ~CAdUiDialog ();
  27. // Misc.
  28. protected:
  29. virtual void OnInitDialogBegin ();
  30. virtual void OnInitDialogFinish ();
  31. // Elasticity
  32. private:
  33. LPVOID m_pElastic;
  34. CString m_dlgHelpTag; // The help string tag for this dialog.
  35. protected:
  36. BOOL m_bEnableElasticMessageMap; // INTERNAL USE ONLY
  37. UINT m_templateid; // INTERNAL USE ONLY
  38. public:
  39. BOOL AddControl (CWnd *pControl);
  40. BOOL AutoLoadControl (CWnd *pControl);
  41. BOOL ForceControlRepaint (CWnd *pControl, BOOL bForce);
  42. BOOL ForceControlResize (CWnd *pControl, LPRECT prect);
  43. BOOL GetColumnSizes (CListCtrl *pList);
  44. CSize *GetCurrentDelta ();
  45. BOOL GetDialogData (LPCTSTR valueName, CString& data);
  46. BOOL GetDialogData (LPCTSTR valueName, DWORD& data);
  47. BOOL GetDialogKey (CString& key);
  48. BOOL GetDialogName (CString& name);
  49. void GetDialogHelpTag (CString& tag);
  50. void GetElasticMinMaxInfo (MINMAXINFO& mmi);
  51. LPVOID GetElasticPointer ();
  52. BOOL GetPixelData (CRect& r);
  53. void LockDialogHeight ();
  54. void LockDialogWidth ();
  55. BOOL MoveControlX (UINT id, LONG lMovePct);
  56. BOOL MoveControlXY (UINT id, LONG lMoveXPct, LONG lMoveYPct);
  57. BOOL MoveControlY (UINT id, LONG lMovePct);
  58. BOOL ReloadControl (CWnd *pControl, LPCTSTR lpResString);
  59. BOOL RemoveControl (CWnd *pControl);
  60. BOOL SaveColumnSizes (CListCtrl *pList);
  61. BOOL SetControlProperty (PDLGCTLINFO lp, DWORD numElements);
  62. BOOL SetDialogData (LPCTSTR valueName, LPCTSTR data);
  63. BOOL SetDialogData (LPCTSTR valueName, DWORD data);
  64. void SetDialogMaxExtents (int width, int height);
  65. void SetDialogMinExtents (int width, int height);
  66. void SetDialogName (LPCTSTR name);
  67. void SetDialogHelpTag (LPCTSTR tag);
  68. void SetElasticSize (CSize& size, BOOL bRefreshDialog);
  69. void SetPersistency (BOOL bFlag);
  70. void SetRootKey (LPCTSTR key);
  71. void SetTabSize (LPARAM lParam, BOOL bRefreshDialog);
  72. BOOL StorePixelData ();
  73. BOOL StretchControlX (UINT id, LONG lStretchPct);
  74. BOOL StretchControlXY (UINT id, LONG lStretchXPct, LONG lStretchYPct);
  75. BOOL StretchControlY (UINT id, LONG lStretchPct);
  76. // ClassWizard-controlled
  77. public:
  78. //{{AFX_DATA(CAdUiDialog)
  79. enum { IDD = 0 };
  80. //}}AFX_DATA
  81. //{{AFX_VIRTUAL(CAdUiDialog)
  82. protected:
  83. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  84. //}}AFX_VIRTUAL
  85. public:
  86. virtual void OnDialogHelp(); // Override this to provide dialog help.
  87. virtual BOOL DoDialogHelp(); // INTERNAL USE ONLY
  88. protected:
  89. //{{AFX_MSG(CAdUiDialog)
  90. afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); // INTERNAL USE ONLY
  91. virtual void OnOK(); // INTERNAL USE ONLY
  92. afx_msg void OnSize(UINT nType, int cx, int cy); // INTERNAL USE ONLY
  93. //}}AFX_MSG
  94. DECLARE_MESSAGE_MAP()
  95. };
  96. #endif // _ADESK_MAC_
  97. /////////////////////////////////////////////////////////////////////////////
  98. //{{AFX_INSERT_LOCATION}}
  99. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  100. #pragma pack (pop)
  101. #endif
  102. /////////////////////////////////////////////////////////////////////////////