ResizablePageEx.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. // 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. // CResizablePageEx window
  26. class CResizablePageEx : public CPropertyPageEx, public CResizableLayout,
  27. public CResizableMinMax
  28. {
  29. DECLARE_DYNCREATE(CResizablePageEx)
  30. // Construction
  31. public:
  32. CResizablePageEx();
  33. CResizablePageEx(UINT nIDTemplate, UINT nIDCaption = 0, UINT nIDHeaderTitle = 0, UINT nIDHeaderSubTitle = 0);
  34. CResizablePageEx(LPCTSTR lpszTemplateName, UINT nIDCaption = 0, UINT nIDHeaderTitle = 0, UINT nIDHeaderSubTitle = 0);
  35. // Attributes
  36. public:
  37. // Operations
  38. public:
  39. // Overrides
  40. // ClassWizard generated virtual function overrides
  41. //{{AFX_VIRTUAL(CResizablePageEx)
  42. protected:
  43. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CResizablePageEx();
  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(CResizablePageEx)
  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 HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_RESIZABLEPAGEEX_H__INCLUDED_)