CPagerCtrl::GetBorder

Retrieves the border size of the current pager control.

int GetBorder() const;

Requirements

Header: afxcmn.h

Return Value

The current border size, measured in pixels.

Remarks

This method sends the PGM_GETBORDER message, which is described in the Windows SDK.

Example

The following example uses the CPagerCtrl::GetBorder method to retrieve the thickness of the pager control's border.

void CCSplitButton_s2Dlg::OnXBorder()
{
    int borderSize = m_pager.GetBorder();
    CString str;
    str.Format(_T("The border is %d pixel(s) thick."), borderSize);
    MessageBox(str);
}

See Also

Concepts

CPagerCtrl Class

CPagerCtrl Members

Hierarchy Chart

PGM_GETBORDER

CPagerCtrl::SetBorder