CComboBox::GetDroppedControlRect
Chamar o GetDroppedControlRect função de membro para recuperar as coordenadas de tela da visível (interrompida) caixa de listagem suspensa de uma caixa de combinação suspensa.
void GetDroppedControlRect(
LPRECT lprect
) const;
Parâmetros
- lprect
Aponta para o RECT estrutura que receberá as coordenadas.
Exemplo
// 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);
Requisitos
Cabeçalho: afxwin.h