<< Return to Main Index

< Return to Class Index

CGXComboBox::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:

   // allow user to input any text
   {
      CGXComboBox* pWnd = new CGXComboBox(new CGXComboBox(this, GX_IDS_CTRL_COMBOBOX, GX_IDS_CTRL_COMBOBOX+1, GXCOMBO_NOTEXTFIT);
      pWnd->m_bInactiveDrawAllCell = TRUE;   // draw text over pushbutton when inactive

      RegisterControl(GX_IDS_CTRL_COMBOBOX, pWnd);
   }

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

CGXComboBox

Class Overview | Class Members