ResizablePageEx.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #if !defined(AFX_RESIZABLEPAGEEX_H__INCLUDED_)
  2. #define AFX_RESIZABLEPAGEEX_H__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ResizablePageEx.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. //
  10. // Copyright (C) 2000-2002 by Paolo Messina
  11. // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
  12. //
  13. // The contents of this file are subject to the Artistic License (the "License").
  14. // You may not use this file except in compliance with the License.
  15. // You may obtain a copy of the License at:
  16. // http://www.opensource.org/licenses/artistic-license.html
  17. //
  18. // If you find this code useful, credits would be nice!
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #include "ResizableLayout.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CResizablePageEx window
  24. class CResizablePageEx : public CPropertyPageEx, public CResizableLayout
  25. {
  26. DECLARE_DYNCREATE(CResizablePageEx)
  27. // Construction
  28. public:
  29. CResizablePageEx();
  30. CResizablePageEx(UINT nIDTemplate, UINT nIDCaption = 0, UINT nIDHeaderTitle = 0, UINT nIDHeaderSubTitle = 0);
  31. CResizablePageEx(LPCTSTR lpszTemplateName, UINT nIDCaption = 0, UINT nIDHeaderTitle = 0, UINT nIDHeaderSubTitle = 0);
  32. // Attributes
  33. public:
  34. // Operations
  35. public:
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CResizablePageEx)
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. public:
  42. virtual ~CResizablePageEx();
  43. // callable from derived classes
  44. protected:
  45. // override to specify refresh for custom or unsupported windows
  46. virtual BOOL NeedsRefresh(const CResizableLayout::LayoutInfo &layout,
  47. const CRect &rectOld, const CRect &rectNew);
  48. virtual CWnd* GetResizableWnd()
  49. {
  50. // make the layout know its parent window
  51. return this;
  52. };
  53. // Generated message map functions
  54. protected:
  55. //{{AFX_MSG(CResizablePageEx)
  56. afx_msg void OnSize(UINT nType, int cx, int cy);
  57. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. };
  61. /////////////////////////////////////////////////////////////////////////////
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_RESIZABLEPAGEEX_H__INCLUDED_)