Skip to content

Commit

Permalink
changes for new NeedsRefresh function
Browse files Browse the repository at this point in the history
  • Loading branch information
ppescher committed Jul 11, 2002
1 parent 5628d94 commit 536578a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ResizableLib/ResizablePageEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
4 changes: 3 additions & 1 deletion ResizableLib/ResizablePageEx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 536578a

Please sign in to comment.