1 // ResizablePage.cpp : implementation file
3 /////////////////////////////////////////////////////////////////////////////
5 // Copyright (C) 2000-2002 by Paolo Messina
6 // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
8 // The contents of this file are subject to the Artistic License (the "License").
9 // You may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at:
11 // http://www.opensource.org/licenses/artistic-license.html
13 // If you find this code useful, credits would be nice!
15 /////////////////////////////////////////////////////////////////////////////
18 #include "ResizablePage.h"
23 static char THIS_FILE
[] = __FILE__
;
26 /////////////////////////////////////////////////////////////////////////////
29 IMPLEMENT_DYNCREATE(CResizablePage
, CPropertyPage
)
31 CResizablePage::CResizablePage()
35 CResizablePage::CResizablePage(UINT nIDTemplate
, UINT nIDCaption
)
36 : CPropertyPage(nIDTemplate
, nIDCaption
)
40 CResizablePage::CResizablePage(LPCTSTR lpszTemplateName
, UINT nIDCaption
)
41 : CPropertyPage(lpszTemplateName
, nIDCaption
)
45 CResizablePage::~CResizablePage()
50 BEGIN_MESSAGE_MAP(CResizablePage
, CPropertyPage
)
51 //{{AFX_MSG_MAP(CResizablePage)
58 /////////////////////////////////////////////////////////////////////////////
59 // CResizablePage message handlers
61 void CResizablePage::OnSize(UINT nType
, int cx
, int cy
)
63 CWnd::OnSize(nType
, cx
, cy
);
68 BOOL
CResizablePage::OnEraseBkgnd(CDC
* pDC
)
70 // Windows XP doesn't like clipping regions ...try this!
74 /* ClipChildren(pDC); // old-method (for safety)
76 return CPropertyPage::OnEraseBkgnd(pDC);