473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

EnableVisualStyles causes CComboBoxEx to stop showing images

I have a C# DLL that calls a function in a C++ DLL. The C++ function
displays a window that has a combo box (CComboBoxEx) control. If I
enable visual styles in my C# DLL, images do not appear in the combo
box. How can this be fixed?

Thanks,
Mike

Oct 15 '07 #1
3 1625
I should have mentioned that I am already performing a DoEvents()
after I enable visual styles.

On Oct 15, 3:02 pm, Mike <MLM...@hotmail.comwrote:
I have a C# DLL that calls a function in a C++ DLL. The C++ function
displays a window that has a combo box (CComboBoxEx) control. If I
enable visual styles in my C# DLL, images do not appear in the combo
box. How can this be fixed?

Thanks,
Mike

Oct 15 '07 #2
"Mike" <ML****@hotmail.comwrote in message
news:11**********************@q5g2000prf.googlegro ups.com...
>I have a C# DLL that calls a function in a C++ DLL. The C++ function
displays a window that has a combo box (CComboBoxEx) control. If I
enable visual styles in my C# DLL, images do not appear in the combo
box. How can this be fixed?
Your problem may be related to this:

http://www.covingtoninnovations.com/...ex.html#060621

The actual events that occur are somewhat different when visual styles are
enabled.

Oct 15 '07 #3
That does not appear to be the problem here. But thanks for the
suggestion.

Any other ideas? Nothing unusual is being done with the control. It is
a CComboBoxEx. We set up a CImageList and assign it to the combo box.
As items are added to the combo box, the appropriate iImage and
iSelectedImage values are set. This is all done within OnInitDialog
after the base function is called. Nothing more is done with the
control until the user clicks OK and we retrieve the selection.

On Oct 15, 7:44 pm, "Michael A. Covington"
<l...@ai.uga.edu.for.addresswrote:
"Mike" <MLM...@hotmail.comwrote in message

news:11**********************@q5g2000prf.googlegro ups.com...
I have a C# DLL that calls a function in a C++ DLL. The C++ function
displays a window that has a combo box (CComboBoxEx) control. If I
enable visual styles in my C# DLL, images do not appear in the combo
box. How can this be fixed?

Your problem may be related to this:

http://www.covingtoninnovations.com/...ex.html#060621

The actual events that occur are somewhat different when visual styles are
enabled.

Oct 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday,...
4
by: #ROBERT | last post by:
(VS 2003 + .NET Framework 1.1 + WinXP Pro SP2) Calling Application.EnableVisualStyles() after the initialization() removes all images in the tab control (in the tab headers I mean). Without...
1
by: desa | last post by:
If I call EnableVisualStyles none the images in my ImageLists show up in my controls anymore. Is this a known issue? How do I fix this? I'm using VS.NET 2003.
4
by: Christian Westerlund | last post by:
Hi! I usually enable visual styles in my apps. I do it in Main before I start my app with Application.Run. Today when I changed from debug to release mode in Visual Studio .NET 2003, the...
7
by: Klaatu | last post by:
Has anyone successfully used CComboBoxEx? I've tried to use it with three images per item (unselected, selected, and overlay). It seems to be buggy. There's no documentation as to when the...
17
by: Lance | last post by:
I've noticed that calling DoEvents is much slower in an application that has called Application.EnableVisualStyles in Sub Main. Furthermore, the performance seems to worsen each time that DoEvents...
8
by: gil | last post by:
Is it possible to prevent a browser from listing the entire contents of a folder? The site, is hosted on my ISP with the following layout- site/ "user name from ISP" pagefile (dir)...
4
by: Harsh Trivedi | last post by:
Hi, We have implemented URL rewriting in our site. It all went OK till home page links. When we click on home page category control, where we have implemented rewriting, it works ok, and open...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.