From 536578a2492abcb96d6a576c4d35c544b91700d1 Mon Sep 17 00:00:00 2001 From: ppescher Date: Thu, 11 Jul 2002 17:48:52 +0000 Subject: [PATCH] changes for new NeedsRefresh function --- ResizableLib/ResizablePageEx.cpp | 5 +++-- ResizableLib/ResizablePageEx.h | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ResizableLib/ResizablePageEx.cpp b/ResizableLib/ResizablePageEx.cpp index 9d4da2b..c65d280 100644 --- a/ResizableLib/ResizablePageEx.cpp +++ b/ResizableLib/ResizablePageEx.cpp @@ -82,10 +82,11 @@ BOOL CResizablePageEx::OnEraseBkgnd(CDC* pDC) */ } -BOOL CResizablePageEx::NeedsRefresh(HWND hWnd) +BOOL CResizablePageEx::NeedsRefresh(const CResizableLayout::LayoutInfo& layout, + const CRect& rectOld, const CRect& rectNew) { if (m_psp.dwFlags | PSP_HIDEHEADER) return TRUE; - return CResizableLayout::NeedsRefresh(hWnd); + return CResizableLayout::NeedsRefresh(layout, rectOld, rectNew); } diff --git a/ResizableLib/ResizablePageEx.h b/ResizableLib/ResizablePageEx.h index b19b93c..09adcef 100644 --- a/ResizableLib/ResizablePageEx.h +++ b/ResizableLib/ResizablePageEx.h @@ -54,7 +54,9 @@ class CResizablePageEx : public CPropertyPageEx, public CResizableLayout // callable from derived classes protected: - virtual BOOL NeedsRefresh(HWND hWnd); + // override to specify refresh for custom or unsupported windows + virtual BOOL NeedsRefresh(const CResizableLayout::LayoutInfo &layout, + const CRect &rectOld, const CRect &rectNew); virtual CWnd* GetResizableWnd() {