Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Different Textsyles in a ComboBox

Status
Not open for further replies.

Lars

Programmer
Aug 10, 2000
16
DE
Hi!
I would like to display the Combobox-entries in different textstyles.
I tried this:

CFont font;
font.Create(......,FW_BOLD,.......);
m_ComboBox.SetFont(&font);
m_ComboBox.InsertString(0,"One");
.
.
.
font.DeleteObject();
font.Create(......,FW_NORMAL,.....);
m_ComboBox.SetFont(&font);
m_ComboBox.InsertString(99,"X");
.
.
.

Any ideas?

Thanks!
 
Lars,

You have to do an 'owner draw' combobox. You will find many examples and samples on MSDN.

Good luck
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top