Sdílet prostřednictvím


CComboBox::GetDroppedControlRect

Volání GetDroppedControlRect členské funkce načíst souřadnice obrazovky viditelné (vynechané) seznamu rozevíracím seznamem.

void GetDroppedControlRect( 
   LPRECT lprect  
) const;

Parametry

  • lprect
    Odkazuje RECT struktury, která je přijímat souřadnice.

Příklad

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

Požadavky

Záhlaví: afxwin.h

Viz také

Referenční dokumentace

Třída CComboBox

Graf hierarchie

CB_GETDROPPEDCONTROLRECT