Share via


CComboBox::GetDroppedControlRect

Chiamare la funzione membro GetDroppedControlRect per recuperare le coordinate dello schermo della casella di riepilogo (rilasciata (in basso) visibile di una casella combinata a discesa.

void GetDroppedControlRect(
   LPRECT lprect 
) const;

Parametri

  • lprect
    Punta alla struttura RECT che prevede di ricevere le coordinate.

Esempio

// 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);

Requisiti

Header: afxwin.h

Vedere anche

Riferimenti

Classe di CComboBox

Grafico della gerarchia

CB_GETDROPPEDCONTROLRECT