XTResizePropertySheet.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:5k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // XTResizePropertySheet.h: interface for the CXTResizePropertySheet class.
  2. //
  3. // This file is a part of the XTREME CONTROLS MFC class library.
  4. // (c)1998-2008 Codejock Software, All Rights Reserved.
  5. //
  6. // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
  7. // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
  8. // CONSENT OF CODEJOCK SOFTWARE.
  9. //
  10. // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
  11. // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
  12. // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
  13. // SINGLE COMPUTER.
  14. //
  15. // CONTACT INFORMATION:
  16. // support@codejock.com
  17. // http://www.codejock.com
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. //{{AFX_CODEJOCK_PRIVATE
  21. #if !defined(__XTRESIZEPROPERTYSHEET_H__)
  22. #define __XTRESIZEPROPERTYSHEET_H__
  23. //}}AFX_CODEJOCK_PRIVATE
  24. #if _MSC_VER > 1000
  25. #pragma once
  26. #endif // _MSC_VER > 1000
  27. //===========================================================================
  28. // Summary:
  29. //     CXTResizePropertySheet is a multiple inheritance class derived from
  30. //     CPropertySheet and CXTResize. CXTResizePropertySheet is used to create
  31. //     a resizable CPropertySheet type object that allows its dialog items
  32. //     to be resized or moved dynamically.
  33. //===========================================================================
  34. class _XTP_EXT_CLASS CXTResizePropertySheet : public CPropertySheet, public CXTResize
  35. {
  36. DECLARE_DYNCREATE(CXTResizePropertySheet)
  37. public:
  38. //----------------------------------------------------------------------
  39. // Summary:
  40. //     Constructs a CXTResizePropertySheet object
  41. // Parameters:
  42. //     nCaption    - ID of the caption to be used for the property sheet.
  43. //     pszCaption  - Points to a string containing the caption to be used for the property
  44. //                   sheet. It cannot be NULL.
  45. //     pParent     - Points to the parent window of the property sheet. If NULL, the parent
  46. //                   window will be the main window of the application.
  47. //     nSelectPage - The index of the page that will initially be on top. Default is the
  48. //                   first page added to the sheet.
  49. //     nFlags      - Flags that are to be passed to CXTResize that specify the attributes
  50. //                   of the resizing property page. They can be one or more of the values in the Remarks section.
  51. // Remarks:
  52. //     Styles to be added or removed can be combined by using the bitwise
  53. //     OR (|) operator. It can be one or more of the following:<p/>
  54. //     * <b>xtResizeNoSizeIcon</b> Do not add size icon.
  55. //     * <b>xtResizeNoHorizontal</b> No horizontal resizing.
  56. //     * <b>xtResizeNoVertical</b> No vertical resizing.
  57. //     * <b>xtResizeNoMinsize</b> Do not require a minimum size.
  58. //     * <b>xtResizeNoClipChildren</b> Do not set clip children style.
  59. //     * <b>xtResizeNoTransparentGroup</b> Do not set transparent style
  60. //       for group boxes.
  61. //
  62. //----------------------------------------------------------------------
  63. CXTResizePropertySheet();
  64. CXTResizePropertySheet(const UINT nCaption, CWnd* pParent = 0, const UINT nSelectPage = 0, const UINT nFlags = 0); // <combine CXTResizePropertySheet::CXTResizePropertySheet>
  65. CXTResizePropertySheet(LPCTSTR pszCaption, CWnd* pParent = 0, const UINT nSelectPage = 0, const UINT nFlags = 0); // <combine CXTResizePropertySheet::CXTResizePropertySheet>
  66. protected:
  67. //----------------------------------------------------------------------
  68. // Summary:
  69. //     This member function determines if the property sheet is in wizard mode.
  70. // Returns:
  71. //     TRUE if the property sheet is a wizard, otherwise returns FALSE.
  72. //----------------------------------------------------------------------
  73. BOOL IsWizard();
  74. protected:
  75. //{{AFX_CODEJOCK_PRIVATE
  76. DECLARE_MESSAGE_MAP()
  77. //{{AFX_MSG(CXTResizePropertySheet)
  78. virtual BOOL OnInitDialog();
  79. afx_msg void OnSize(UINT nType, int cx, int cy);
  80. afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
  81. afx_msg void OnDestroy();
  82. afx_msg BOOL OnPageChanging(NMHDR* pNotifyStruct, LRESULT* pResult);
  83. //}}AFX_MSG
  84. //}}AFX_CODEJOCK_PRIVATE
  85. public:
  86. CXTPNoFlickerWnd <CTabCtrl> m_tabCtrl;  // Tab control.
  87. friend class CXTResizePropertyPage;
  88. };
  89. //////////////////////////////////////////////////////////////////////
  90. //{{AFX_CODEJOCK_PRIVATE
  91. #ifndef PSH_WIZARD_LITE
  92. #define PSH_WIZARD_LITE         0x00400000
  93. #endif  // PSH_WIZARD_LITE
  94. //}}AFX_CODEJOCK_PRIVATE
  95. AFX_INLINE BOOL CXTResizePropertySheet::IsWizard() {
  96. return ((m_psh.dwFlags & (PSH_WIZARD | PSH_WIZARD97 | PSH_WIZARD_LITE)) != 0);
  97. }
  98. #endif // !defined(__XTRESIZEPROPERTYSHEET_H__)