Compilation fixes due to change of RECT handling.

git-svn-id: http://svn.purei.org/purei/trunk@1118 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
jpd002 2013-04-29 04:53:49 +00:00
parent 22c899d941
commit 8b355c3e2b
45 changed files with 360 additions and 468 deletions

View file

@ -132,18 +132,22 @@ void CELFProgramView::FillInformation()
void CELFProgramView::RefreshLayout()
{
RECT rc;
::GetClientRect(GetParent(), &rc);
{
RECT rc;
::GetClientRect(GetParent(), &rc);
SetPosition(0, 0);
SetSize(rc.right, rc.bottom);
SetPosition(0, 0);
SetSize(rc.right, rc.bottom);
}
GetClientRect(&rc);
{
RECT rc = GetClientRect();
SetRect(&rc, rc.left + 10, rc.top + 10, rc.right - 10, rc.bottom + m_pLayout->GetPreferredHeight());
SetRect(&rc, rc.left + 10, rc.top + 10, rc.right - 10, rc.bottom + m_pLayout->GetPreferredHeight());
m_pLayout->SetRect(rc.left, rc.top, rc.right, rc.bottom);
m_pLayout->RefreshGeometry();
m_pLayout->SetRect(rc.left, rc.top, rc.right, rc.bottom);
m_pLayout->RefreshGeometry();
}
Redraw();
}