[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I create a ComboBox without having a 3d-look?

Posted on 1997-12-29
2
Medium Priority
?
435 Views
Last Modified: 2013-11-20
I want to create a ComboBox control, which has no border and no 3d-look. I want to create a flat ComboBox which has only the Dropdown push button. I tried modifying style, but it won't work. Could anyone help me?

thanks in advance,
sachin
0
Comment
Question by:sachinm
  • 2
2 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1313199
Since the CComboBox is already built for you by MFC, and it doesn't give you the option of changing it to a non-3D look, you can't do it that easily.  If it must be done, then the approach is to draw the CComboBox youself.  Use your OnPaint method, get the CRect of the CComboBox, draw it the way you want it, and don't forget to write the text into the box.
0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 1313200
Since the CComboBox is already built for you by MFC, and it doesn't give you the option of changing it to a non-3D look, you can't do it that easily. If it must be done, then the approach is to draw the CComboBox youself. Use your OnPaint method, get the CRect of the CComboBox, draw it the way you want it, and don't forget to write the text into the box.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Integration Management Part 2

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question