<< Return to Main Index

< Return to Class Index

CGXComboBox::m_bInactiveDrawButton

BOOL m_bInactiveDrawButton;

Remarks

Specifies whether the pushbutton shall be drawn even if the cell is not the current cell. If the attribute is TRUE, the button will be drawn. The default setting is FALSE, which means that the button is only drawn for the current cell.

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_bInactiveDrawButton = TRUE;   // draw 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 always draw the pushbutton and not just the current cell.

CGXComboBox

Class Overview | Class Members