ResizablePage.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #if !defined(AFX_RESIZABLEPAGE_H__INCLUDED_)
  2. #define AFX_RESIZABLEPAGE_H__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ResizablePage.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. //
  10. // This file is part of ResizableLib
  11. // https://github.com/ppescher/resizablelib
  12. //
  13. // Copyright (C) 2000-2015 by Paolo Messina
  14. // mailto:ppescher@hotmail.com
  15. //
  16. // The contents of this file are subject to the Artistic License 2.0
  17. // http://opensource.org/licenses/Artistic-2.0
  18. //
  19. // If you find this code useful, credits would be nice!
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. #include "ResizableLayout.h"
  23. #include "ResizableMinMax.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CResizablePage window
  26. class CResizablePage : public CPropertyPage, public CResizableLayout,
  27. public CResizableMinMax
  28. {
  29. DECLARE_DYNCREATE(CResizablePage)
  30. // Construction
  31. public:
  32. CResizablePage();
  33. CResizablePage(UINT nIDTemplate, UINT nIDCaption = 0);
  34. CResizablePage(LPCTSTR lpszTemplateName, UINT nIDCaption = 0);
  35. // Attributes
  36. public:
  37. // Operations
  38. public:
  39. // Overrides
  40. // ClassWizard generated virtual function overrides
  41. //{{AFX_VIRTUAL(CResizablePage)
  42. protected:
  43. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CResizablePage();
  48. // callable from derived classes
  49. protected:
  50. virtual CWnd* GetResizableWnd() const
  51. {
  52. // make the layout know its parent window
  53. return CWnd::FromHandle(m_hWnd);
  54. };
  55. // Generated message map functions
  56. protected:
  57. //{{AFX_MSG(CResizablePage)
  58. afx_msg void OnSize(UINT nType, int cx, int cy);
  59. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  60. afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
  61. virtual BOOL OnInitDialog();
  62. afx_msg void OnDestroy();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. /////////////////////////////////////////////////////////////////////////////
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  69. #endif // !defined(AFX_RESIZABLEPAGE_H__INCLUDED_)