PropPgFormView.h
上传用户:sisi1999
上传日期:2007-01-02
资源大小:39k
文件大小:3k
源码类别:

PropertySheet

开发平台:

Visual C++

  1. // PropPgFormView.h : interface of the CPropPgFormView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SHEETINVIEWVIEW_H__96C3F270_AD99_11D3_AB38_005004CF7A2A__INCLUDED_)
  5. #define AFX_SHEETINVIEWVIEW_H__96C3F270_AD99_11D3_AB38_005004CF7A2A__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "PropPgFormDoc.h"
  10. #include "ViewPropertySheet.h"
  11. class CPropPgFormView : public CFormView
  12. {
  13. public: // create from serialization only
  14. CPropPgFormView();
  15. CPropPgFormView(UINT nIDTemplate);
  16. CPropPgFormView(LPCTSTR lpszTemplateName);
  17. DECLARE_DYNCREATE(CPropPgFormView)
  18. // Attributes
  19. public:
  20. CPropPgFormDoc* GetDocument();
  21. protected:
  22. CViewPropertySheet m_PropSheet;
  23. CSize m_sizeControl; // extent of the template-based controls
  24. int m_PS_Offset; // offset of property sheet from bottom control on containing dialog
  25. // Operations
  26. public:
  27. virtual void SetPropertySheetOffset(int iOffset = PS_Y_OFFSET, BOOL bRedraw = FALSE);
  28. virtual int GetPropertySheetOffset();
  29. virtual void ResizeForNewControl();
  30. protected:
  31. virtual void AdjustPropSheetPosition();
  32. virtual void ResizeParentFrame();
  33. virtual CSize GetMaxControl(); // gets control extent
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CPropPgFormView)
  37. public:
  38. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  39. virtual void OnInitialUpdate();
  40. virtual BOOL PreTranslateMessage(MSG* pMsg);
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. public:
  44. virtual ~CPropPgFormView();
  45. #ifdef _DEBUG
  46. virtual void AssertValid() const;
  47. virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(CPropPgFormView)
  52. afx_msg void OnSize(UINT nType, int cx, int cy);
  53. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  54. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. #ifndef _DEBUG  // debug version in PropPgFormView.cpp
  59. inline CPropPgFormDoc* CPropPgFormView::GetDocument()
  60.    { return (CPropPgFormDoc*)m_pDocument; }
  61. #endif
  62. /////////////////////////////////////////////////////////////////////////////
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_SHEETINVIEWVIEW_H__96C3F270_AD99_11D3_AB38_005004CF7A2A__INCLUDED_)