Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - ComboBox issues
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ComboBox issues

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 921
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: ComboBox issues
    Posted: 17 April 2025 at 2:21pm
So I have encountered another issue with ComboBox. This one is odd. We supply images for the combobox which are dark. When I am running without our skin applied and have a dialog up that has a normal ComboBox on it and then I apply the skin all the windows update. But the ComboBox doesn't appear correctly.

If I apply the skin and then bring up the same dialog, the combobox looks fine. The ComboBox that is on a dialog when I apply the skin appears to be a combination (yeah) of skinned and unskinned. The outline and drop arrow are skinned but the rest is not.

I gave up trying to determine why it happens. For now I resorted to adding code to destroy the current comboboxes when a dialog is present with any and recreating them. The newly created comboboxes look just fine. I see the same issue for any combobox on any dialog. Fortunately we don't have many but we do have a few dialogs we create one time. I added code to handle WM_SYSCOLORCHANGE and if we have our skin running I recreate the comboboxes when that call arrives.

I tried to find one of the CJ skin samples that have comoboxes and a skin that changes them but I didn't find any. The drop box always works fine, by the way.

For reference here is our dialog where the user can choose one of CJ's Office 2016 color themes. Our "Dark" is the "black" theme and we also load our dark skin. See the "Application color scheme" combobox. It looks correct. So does the "Steering Wheel .." combo box below it with "Extra Large" text.

Here is the same dialog when we are not using the skin.

And here is the same dialog after I switch the Application color theme to Dark which applies the skin while the dialog is still visible.
The ComboBox with "Dark" in it has the selected color we use all across the dialog. Dismissing the dialog and bringing it back up with Dark already set is what we want to see which is what the first image shows.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.