ResizablePage.h

00001 #if !defined(AFX_RESIZABLEPAGE_H__INCLUDED_)
00002 #define AFX_RESIZABLEPAGE_H__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 
00008 // ResizablePage.h : header file
00009 //
00011 //
00012 // Copyright (C) 2000-2002 by Paolo Messina
00013 // (http://www.geocities.com/ppescher - [email protected])
00014 //
00015 // The contents of this file are subject to the Artistic License (the "License").
00016 // You may not use this file except in compliance with the License. 
00017 // You may obtain a copy of the License at:
00018 // http://www.opensource.org/licenses/artistic-license.html
00019 //
00020 // If you find this code useful, credits would be nice!
00021 //
00023 
00024 #include "ResizableLayout.h"
00025 
00026 
00028 // CResizablePage window
00029 
00030 class CResizablePage : public CPropertyPage, public CResizableLayout
00031 {
00032         DECLARE_DYNCREATE(CResizablePage)
00033 
00034 // Construction
00035 public:
00036         CResizablePage();
00037         CResizablePage(UINT nIDTemplate, UINT nIDCaption = 0);
00038         CResizablePage(LPCTSTR lpszTemplateName, UINT nIDCaption = 0);
00039 
00040 // Attributes
00041 public:
00042 
00043 // Operations
00044 public:
00045 
00046 // Overrides
00047         // ClassWizard generated virtual function overrides
00048         //{{AFX_VIRTUAL(CResizablePage)
00049         //}}AFX_VIRTUAL
00050 
00051 // Implementation
00052 public:
00053         virtual ~CResizablePage();
00054 
00055 // callable from derived classes
00056 protected:
00057 
00058         virtual CWnd* GetResizableWnd()
00059         {
00060                 // make the layout know its parent window
00061                 return this;
00062         };
00063 
00064 // Generated message map functions
00065 protected:
00066         //{{AFX_MSG(CResizablePage)
00067         afx_msg void OnSize(UINT nType, int cx, int cy);
00068         afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00069         //}}AFX_MSG
00070         DECLARE_MESSAGE_MAP()
00071 };
00072 
00074 
00075 //{{AFX_INSERT_LOCATION}}
00076 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00077 
00078 #endif // !defined(AFX_RESIZABLEPAGE_H__INCLUDED_)

Generated on Tue Dec 13 14:47:57 2005 for guliverkli by  doxygen 1.4.5