CGXComboBoxWnd::m_bForceInsideCell
BOOL m_bForceInsideCell;
Remarks
Specifies whether the combo box shall be forced to draw inside the cell when it receives the focus. If m_bForceInsideCell is FALSE, the combo box will be drawn slightly larger than the cell, so that the cell text is not clipped. The default setting is FALSE.
You can set this attribute when registering the control in your OnInitialUpdate() method.
Example:
// CComboBox adapter with CBS_DROPDOWN style
{
CGXComboBoxWnd* pWnd = new CGXComboBoxWnd(this);
pWnd->Create(WS_VSCROLL | CBS_DROPDOWN | CBS_AUTOHSCROLL, GX_IDS_CTRL_CBS_DROPDOWN);
pWnd->m_bFillWithChoiceList = TRUE;
pWnd->m_bWantArrowKeys = FALSE;
pWnd->m_bForceInsideCell = TRUE;
RegisterControl(GX_IDS_CTRL_CBS_DROPDOWN, pWnd);
}