Update UNRAR.H
[xy_vsfilter.git] / src / ui / ResizableLib / ResizablePage.cpp
blob10c49366e401212ca3ab2335ce0d52e214a17bc9
1 // ResizablePage.cpp : implementation file
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (C) 2000-2002 by Paolo Messina
6 // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
7 //
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 /////////////////////////////////////////////////////////////////////////////
17 #include "stdafx.h"
18 #include "ResizablePage.h"
20 #ifdef _DEBUG
21 #define new DEBUG_NEW
22 #undef THIS_FILE
23 static char THIS_FILE[] = __FILE__;
24 #endif
26 /////////////////////////////////////////////////////////////////////////////
27 // CResizablePage
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)
52 ON_WM_SIZE()
53 ON_WM_ERASEBKGND()
54 //}}AFX_MSG_MAP
55 END_MESSAGE_MAP()
58 /////////////////////////////////////////////////////////////////////////////
59 // CResizablePage message handlers
61 void CResizablePage::OnSize(UINT nType, int cx, int cy)
63 CWnd::OnSize(nType, cx, cy);
65 ArrangeLayout();
68 BOOL CResizablePage::OnEraseBkgnd(CDC* pDC)
70 // Windows XP doesn't like clipping regions ...try this!
71 EraseBackground(pDC);
72 return TRUE;
74 /* ClipChildren(pDC); // old-method (for safety)
76 return CPropertyPage::OnEraseBkgnd(pDC);