Avatar of VapiSoft
VapiSoft
 asked on

ComboBox with strings and icons

Hi,

I need to create a ComboBox with icons and stings in Windows.
I can add strings if the style is not OwnerDraw,  or icons if I set it to ownerdraw and add the icons using SetItemData.
But I cannot add both.
C++Visual C++.NETC

Avatar of undefined
Last Comment
VapiSoft

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
alexey_gusev

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
VapiSoft

ASKER
No.
It is called XP (or office) style.
It is a flat combobox with out the gray button only a small triangle (just like in the IE address-bar).
alexey_gusev

I'm not sure I follow you :)

that sample shows how to create inherited control to show icons and text in the combobox, so how is it different from what you asked?
VapiSoft

ASKER
You can see here an example of what I want.
It is in VB and I need it in C.
http://www.codeproject.com/KB/cpp/flatcombobox.aspx

Also, look in the attached picture for a combobox in IE (I need something like that).
 combo
Your help has saved me hundreds of hours of internet surfing.
fblack61
SOLUTION
sarabande

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
VapiSoft

ASKER
To Sara - The poblem is that the top part (the edit and the open-button) look like old combo.

to alexey - I worked for exe, but I cannot make it work in the DLL.
Do you have a suggestion?
alexey_gusev

hmm, does your dll have the same manifest? because it shouldn't have any difference, maybe check your exe's manifest when you use 'flat combo' from the dll
VapiSoft

ASKER
OK, It was different so I changed it to use the same manifest file.
It didn't help.
I am trying it with MSVS6 but I tried it also in Visula Studio 2010 Express (I added a #program line that adds the mainfest to the linker), but they both fail to work.

I windering if there is a simpler way to do it?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
VapiSoft

ASKER
I want to close it, and thanks for the help.
i don't remember how but I solved it.