Print Page | Close Window

CComboBox not skinned with ApplyWindow()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=16224
Printed Date: 22 November 2024 at 1:55pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CComboBox not skinned with ApplyWindow()
Posted By: alistair.m
Subject: CComboBox not skinned with ApplyWindow()
Date Posted: 18 February 2010 at 12:17pm
Hi, how do you get combo box drop down scroll bars and line highlights to skin when using SetAutoApplyNewWindows(FALSE) ?

I'm using the SetAutoApplyNewWindows(FALSE) option to skin individual views and dialogs which is working so far, but generally any CComboBox controls fail to skin when dropped down. i.e. the combos edit box and arrow are skinned but the list and scroll bar dropped down after pressing the arrow do not get skinned.
This does not happen (i.e. it works) if you skin the complete application in one go by passing TRUE to the SetAuto... function.

I've reproduced this in the SkinMDISample app by adding XTPSkinManager()->SetAutoApplyNewWindows(FALSE) to CMainFrame::OnShemaChanged() and XTPSkinManager()->ApplyWindow(this->GetSafeHwnd()) to the CSkinPropertyPageThemes::OnInitDialog, along with adding a combo and populating it with shed loads of entries. On changing to any of the skins, the combo drop down fails to get updated. I can upload the project if needed.

Is there a simple call I'm missing to get this working?

Thanks.



-------------
Product: Xtreme ToolkitPro (MFC) version 18.6
Platform: Windows 10 (64 bit)
Language: Visual Studio 2019



Replies:
Posted By: alistair.m
Date Posted: 23 February 2010 at 5:08am
Apparently there is a fix for this in 14 (Beta). I'll try it as soon as I can.

-------------
Product: Xtreme ToolkitPro (MFC) version 18.6
Platform: Windows 10 (64 bit)
Language: Visual Studio 2019



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net