<< Return to Main Index

< Return to Class Index

CGXComboBox::m_bSizeToContent

BOOL m_bSizeToContent;

Remarks

Specifies if the window rectangle for the combo box shall be computed on the font and cell size. m_bSizeToContent is TRUE by default. If you set this attribute FALSE, the combo box will draw the button over the whole height of the 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_bSizeToContent = TRUE;

      RegisterControl(GX_IDS_CTRL_COMBOBOX, pWnd);
   }

CGXComboBox

Class Overview | Class Members