void GetDroppedControlRect( LPRECT lprect ) const;
Parameters
lprect
Points to the RECT structure that is to receive the coordinates.
Remarks
Call the GetDroppedControlRect member function to retrieve the screen coordinates of the visible (dropped-down) list box of a drop-down combo box.
Example
// This example move a combo box so that the upper left
// corner of the combo box is at a specific point.
// The pointer to my combo box.
extern CComboBox* pmyComboBox;
// The point to move the combo box to.
extern CPoint myPoint;
CRect r;
pmyComboBox->GetDroppedControlRect(&r);
pmyComboBox->GetParent()->ScreenToClient(&r);
r.OffsetRect(myPoint - r.TopLeft());
pmyComboBox->MoveWindow(&r);
CComboBox Overview | Class Members | Hierarchy Chart
See Also CB_GETDROPPEDCONTROLRECT