CComboBox::GetDroppedControlRect
Вызовите функцию-член GetDroppedControlRect для получения координаты экрана видимого (удаленный - вниз) списка в поле со списком.
void GetDroppedControlRect(
LPRECT lprect
) const;
Параметры
- lprect
Указатель на структуру RECT, получить координаты.
Пример
// This example move a combo box so that the upper left
// corner of the combo box is at a specific point.
// The point to move the combo box to.
CPoint myPoint(30, 10);
CRect r;
m_pComboBox->GetDroppedControlRect(&r);
m_pComboBox->GetParent()->ScreenToClient(&r);
r.OffsetRect(myPoint - r.TopLeft());
m_pComboBox->MoveWindow(&r);
Требования
Header: afxwin.h