Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtComboBox style Collapse All
Subject Author Date
Borremans Pierre Dec 16, 2009 - 6:36 AM

How to align to the right the text in a CExtComboBox ?


 

Technical Support Dec 16, 2009 - 10:37 AM

The editor window is the edit common control which is the single child of the combo box window. I.e. ::GetWindow( hWndComboBox, GW_CHILD ) code returns the HWND handle of the edit control and you can apply the ES_RIGHT style to it.

Technical Support Dec 16, 2009 - 8:26 AM

You should use the owner draw combo box. Please override the CExtComboBoxBase::DrawItem() virtual method, copy the source code from the original method and modify the text painting code snippet.

Borremans Pierre Dec 16, 2009 - 9:02 AM

ok but I want to align the text in the Cedit of the cextcombobox not the text in the menu.