CGXComboBoxWnd::CGXComboBoxWnd

CGXComboBoxWnd(CGXGridCore* pGrid);

pGrid

Pointer to the parent grid.

Remarks

Constructs a combo box window control.

You need to register this object in the grid with CGXGridCore::RegisterControl before you can use it in cells (see example).

CGXComboBoxWnd has some attributes that specify the behavior of the combo-box control. You should set them after constructing the control.

Example

This example shows how Objective Grid registers the default combo-box controls in the grid:

// CComboBox adapter with CBS_DROPDOWN style
{
   CGXComboBoxWnd* pWnd = new CGXComboBoxWnd(this);
   pWnd->Create(WS_VSCROLL | CBS_DROPDOWN, GX_IDS_CTRL_CBS_DROPDOWN);
   pWnd->m_bFillWithChoiceList = TRUE;
   pWnd->m_bWantArrowKeys = FALSE;
   RegisterControl(GX_IDS_CTRL_CBS_DROPDOWN, pWnd);
}
// CComboBox adapter with CBS_DROPDOWNLIST style
{
   CGXComboBoxWnd* pWnd = new CGXComboBoxWnd(this);
   pWnd->Create(WS_VSCROLL | CBS_DROPDOWNLIST, GX_IDS_CTRL_CBS_DROPDOWNLIST);
   pWnd->m_bFillWithChoiceList = TRUE;
   pWnd->m_bWantArrowKeys = FALSE;
   RegisterControl(GX_IDS_CTRL_CBS_DROPDOWNLIST, pWnd);
} 

See Also

 CGXGridCore::RegisterControl

CGXComboBoxWnd

 Class Overview |  Class Members