Click here to Skip to main content
15,917,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI all,

I need to customize CComboBox's drop button, and change color of control's boundary (not the drop list).

How can I do that?

Quy
Posted

1 solution

You will have to walk the owner-drawn path...

Take a look at the articles that you can find here in CP[^] about owner drawn Combo-boxes, they will help you.

Hope this helps.
 
Share this answer
 
Comments
Albert Holguin 13-Jul-11 12:07pm    
that's the only solution...
Joan M 13-Jul-11 12:15pm    
I'm afraid it is... Thank you again Albert! :thumbsup:
quyps 13-Jul-11 12:45pm    
Thank you very much Juan. And yes, I have been thinking of using owner-drawn. But as i understand, and i may be wrong that owner-draw, by overlapped function DrawItems(), MeasureItem().., is used for drawing items in drop list. please correct me here.
Joan M 13-Jul-11 13:30pm    
Owner-drawn will allow you to draw the entire control... But if I must tell you the truth I've always run like hell in order to avoid that... ^^¡

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900