CTabCtrl::AdjustRect
창 사각형을 지정 된 탭 컨트롤의 표시 영역을 계산 하거나 주어진된 표시 영역에 해당 하는 창 사각형을 계산 합니다.
void AdjustRect(
BOOL bLarger,
LPRECT lpRect
);
매개 변수
bLarger
수행할 수 있는 작업을 나타냅니다. 이 매개 변수가 TRUE, lpRect 표시 영역을 지정 하 고 해당 창의 사각형을 받습니다. 이 매개 변수가 거짓, lpRect 창의 사각형을 지정 하 고 해당 표시 영역을 받습니다.lpRect
포인터는 RECT 구조체는 지정 된 사각형을 지정 하 고 계산 된 사각형을 받습니다.
예제
void CTabDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
if(m_TabCtrl.m_hWnd == NULL)
return; // Return if window is not created yet.
RECT rect;
// Get size of dialog window.
GetClientRect(&rect);
// Adjust the rectangle to fit the tab control into the
// dialog's client rectangle.
m_TabCtrl.AdjustRect(FALSE, &rect);
// Move the tab control to the new position and size.
m_TabCtrl.MoveWindow(&rect, TRUE);
}
요구 사항
헤더: afxcmn.h