Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to change font for CXTFlatComboBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change font for CXTFlatComboBox

 Post Reply Post Reply
Author
Message
Maneesh View Drop Down
Newbie
Newbie


Joined: 02 May 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maneesh Quote  Post ReplyReply Direct Link To This Post Topic: How to change font for CXTFlatComboBox
    Posted: 16 March 2006 at 1:02am

Hi

I create a custom combo in my toolbar.The combo style is DROPDOWNLIST.When I type in charecters in the combo the charecters appear in BOLD style nad the size of charecters is bigger.I donot want the charecters to be in BOLD style.How do I change the style of the combo.I looked into the samples but I couldnt get any solutions. Below is the code by which I create the COMBO

 CXTPToolBar* pToolBar = lpCreateControl->bToolBar? DYNAMIC_DOWNCAST(CXTPToolBar, lpCreateControl->pCommandBar): NULL;

 if (  pToolBar )
 {
  if ( pToolBar->GetBarID() == IDR_BUTTONS_TOOLBAR )
  {
   switch (lpCreateControl->nID )
   {
   case ID_TOOLBAR_SMART_COMBO:
    {
     m_cmbSmartCombo.Create( CBS_AUTOHSCROLL | CBS_DROPDOWN|WS_TABSTOP | WS_CHILD | WS_VISIBLE  , CRect( 0 ,0 , 175, 25) , this , ID_SMARTLOOKUP_COMBO );
     CXTPControlCustom* pControlDestComboBox = CXTPControlCustom::CreateControlCustom(&m_cmbSmartCombo) ;
     lpCreateControl->pControl = pControlDestComboBox;
     lpCreateControl->buttonStyl e = xtpButtonAutomatic;
     return TRUE;
    }
   }
  }
 }

m_cmbSmartCombo is an object of CPxFlatComboBox which is derived from CXTFlatComboBox.

Also I dont get the flat look for the combo when I do it in this way.How do I get the flat look for the combo.

Any thoughts on this.

Expecting a reply ASAP.

Regards

Ganapathi

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.046 seconds.