Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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);
}