Skip to content

Commit

Permalink
renamed some variables and struct members
Browse files Browse the repository at this point in the history
  • Loading branch information
ppescher committed Jun 5, 2004
1 parent 78a19c7 commit 42212e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions ResizableLib/ResizableSheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ BOOL CResizableSheet::ArrangeLayoutCallback(LAYOUTINFO &layout) const
if (IsWizard()) // wizard mode
{
// use pre-calculated margins
layout.sizeMarginTL = m_sizePageTL;
layout.sizeMarginBR = m_sizePageBR;
layout.marginTopLeft = m_sizePageTL;
layout.marginBottomRight = m_sizePageBR;
}
else // tab mode
{
Expand All @@ -228,13 +228,13 @@ BOOL CResizableSheet::ArrangeLayoutCallback(LAYOUTINFO &layout) const
pTab->SetRedraw(TRUE);

// set margins
layout.sizeMarginTL = rectPage.TopLeft() - rectSheet.TopLeft();
layout.sizeMarginBR = rectPage.BottomRight() - rectSheet.BottomRight();
layout.marginTopLeft = rectPage.TopLeft() - rectSheet.TopLeft();
layout.marginBottomRight = rectPage.BottomRight() - rectSheet.BottomRight();
}

// set anchor types
layout.anchorTypeTL = TOP_LEFT;
layout.anchorTypeBR = BOTTOM_RIGHT;
layout.anchorTopLeft = TOP_LEFT;
layout.anchorBottomRight = BOTTOM_RIGHT;

// use this layout info
return TRUE;
Expand Down
18 changes: 9 additions & 9 deletions ResizableLib/ResizableSheetEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ BOOL CResizableSheetEx::ArrangeLayoutCallback(LAYOUTINFO &layout) const
if (IsWizard()) // wizard mode
{
// use pre-calculated margins
layout.sizeMarginTL = m_sizePageTL;
layout.sizeMarginBR = m_sizePageBR;
layout.marginTopLeft = m_sizePageTL;
layout.marginBottomRight = m_sizePageBR;
}
else if (IsWizard97()) // wizard 97
{
// use pre-calculated margins
layout.sizeMarginTL = m_sizePageTL;
layout.sizeMarginBR = m_sizePageBR;
layout.marginTopLeft = m_sizePageTL;
layout.marginBottomRight = m_sizePageBR;

if (!(GetActivePage()->m_psp.dwFlags & PSP_HIDEHEADER))
{
Expand All @@ -257,7 +257,7 @@ BOOL CResizableSheetEx::ArrangeLayoutCallback(LAYOUTINFO &layout) const
GetTotalClientRect(&rectSheet);
GetAnchorPosition(ID_WIZLINEHDR, rectSheet, rectLine);

layout.sizeMarginTL.cy = rectLine.bottom;
layout.marginTopLeft.cy = rectLine.bottom;
}
}
else // tab mode
Expand All @@ -283,13 +283,13 @@ BOOL CResizableSheetEx::ArrangeLayoutCallback(LAYOUTINFO &layout) const
pTab->SetRedraw(TRUE);

// set margins
layout.sizeMarginTL = rectPage.TopLeft() - rectSheet.TopLeft();
layout.sizeMarginBR = rectPage.BottomRight() - rectSheet.BottomRight();
layout.marginTopLeft = rectPage.TopLeft() - rectSheet.TopLeft();
layout.marginBottomRight = rectPage.BottomRight() - rectSheet.BottomRight();
}

// set anchor types
layout.anchorTypeTL = TOP_LEFT;
layout.anchorTypeBR = BOTTOM_RIGHT;
layout.anchorTopLeft = TOP_LEFT;
layout.anchorBottomRight = BOTTOM_RIGHT;

// use this layout info
return TRUE;
Expand Down

0 comments on commit 42212e2

Please sign in to comment.