CGXComboBoxWnd::m_bDropDownOnClick

BOOL m_bDropDownOnClick;

Remarks

Specifies if the drop-down list (when control has been created with the CBS_DROPDOWNLIST style) will automatically drop down the list box portion when the user clicks the first time in the cell. This setting does not have any effect if the combo box does not have the CBS_DROPDOWNLIST style.

The default setting is TRUE.

You can set this attribute when registering the control in your OnInitialUpdate() method.

Example:

   // 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;
      pWnd->m_bDropDownOnClick = FALSE;
      RegisterControl(GX_IDS_CTRL_CBS_DROPDOWNLIST, pWnd);
   }

Now all GX_IDS_CTRL_CBS_DROPDOWN controls will not drop down when the user clicks the first time in the cell.

CGXComboBoxWnd

 Class Overview |  Class Members