Solved

Is a control a comboBox ?

Posted on 2000-04-07
2
242 Views
Last Modified: 2013-11-20
Hello,

I learned to use ::GetClassName(...) API function to get the class name
for the active control.

Unfortunately, It retrieves the same class name for Edit controls and comboBoxes.

How can I distinguish between the two ?
Any API / MFC solution will be great.

Yair
 
0
Comment
Question by:yairy
2 Comments
 
LVL 30

Accepted Solution

by:
Zoppo earned 20 total points
ID: 2692951
Hi yairy,

If the classname is 'Edit' you should check classname of control's parent. If this is 'ComboBox' then it's a combo box. There are three different types of comboboxes:

- SIMPLE: a 'Edit' control and a 'ComboBox' control as sibling childs of a 'ComboBox' control

- DROPLIST: one single 'ComboBox' control.

- DROPDOWN: a single 'Edit' control as child of a 'ComboBox' control

hope that helps,

ZOPPO
0
 
LVL 2

Author Comment

by:yairy
ID: 2710214
Sorry about the delay, I wasn't notified
there is an answer.

I'll get to you after checking.

Yair
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now