[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

centering text in CComboBox

How can I center the text in a CComboBox?  I'd like each list item to be centered (makes them easier to read and it looks nicer).

Thanks in advance.
0
guiness
Asked:
guiness
  • 2
1 Solution
 
mikeblasCommented:
There's no style to do this.  You have to make an ownerdraw box.

If you want a sample, let me know.

..B ekiM
0
 
guinessAuthor Commented:
Yes please, a sample would be great!
0
 
mikeblasCommented:
I don't normally write samples for such a small amount of points.

But, I guess sometimes charity is OK.

See the ODCOMBO.ZIP sample at http://www.nwlink.com/~mikeblas/samples . (Note that, someday, my webpage will move to http://www.mooseboy.com/ )

..B ekiM
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now