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

x
?
Solved

How to reduce the height of CComboBox control in MFC?

Posted on 2006-06-03
3
Medium Priority
?
648 Views
Last Modified: 2013-11-20
I am aware that with the SetItemHeight(...) function of the CComboBox class, one can increase the height of a combo box. But if one needs to reduce the height of a combo box, How to do this?

Thanks in advance.

Regards,
amit.

0
Comment
Question by:amit_chuks
1 Comment
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 2000 total points
ID: 16830677
You should be able to change the height using SetWindowPos / MoveWindow.

if you want to change the height of the listbox portion You may have to subclass individual windows of the CComboBox. After subclassing, change the height of the listbox portion. Following shows how to subclass:

HOWTO: Subclass CListBox and CEdit Inside of CComboBox ID: Q174667
http://support.microsoft.com/kb/q174667/

-MAHESH


0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

834 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