<< Return to Main Index

< Return to Class Index

CGXComboBoxWnd::m_bInactiveDrawAllCell

BOOL m_bInactiveDrawAllCell;

Remarks

Specifies whether the combo box shall draw text over the pushbutton if it is hidden. If the attribute is TRUE, the text will be drawn over the hidden button. The default setting is FALSE, which means that the text is clipped even if the pushbutton is not visible.

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_bInactiveDrawAllCell = TRUE;
      RegisterControl(GX_IDS_CTRL_CBS_DROPDOWN, pWnd);
   }

Now when you apply the GX_IDS_CTRL_CBS_DROPDOWN combo box to your cells, they will all draw the text over the pushbutton when the pushbutton is invisible.

CGXComboBoxWnd

Class Overview | Class Members