Solved

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

Posted on 1997-12-29
2
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

707 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