Freigeben über


CCheckListBox::OnGetCheckPosition

The framework calls this function to get the position and size of the check box in an item.

virtual CRect OnGetCheckPosition(
   CRect rectItem,
   CRect rectCheckBox 
);

Parameters

  • rectItem
    The position and size of the list item.

  • rectCheckBox
    The default position and size of an item's check box.

Return Value

The position and size of an item's check box.

Remarks

The default implementation only returns the default position and size of the check box (rectCheckBox). By default, a check box is aligned in the upper-left corner of an item and is the standard check box size. There may be cases where you want the check boxes on the right, or want a larger or smaller check box. In these cases, override OnGetCheckPosition to change the check box position and size within the item.

Requirements

Header: afxwin.h

See Also

Concepts

CCheckListBox Class

CCheckListBox Members

Hierarchy Chart

CCheckListBox::SetCheck

CCheckListBox::SetCheckStyle

CCheckListBox::GetCheck

CCheckListBox::GetCheckStyle