Print Page | Close Window

Resource switching problem with CXTColorP

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3984
Printed Date: 10 November 2025 at 9:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resource switching problem with CXTColorP
Posted By: horei
Subject: Resource switching problem with CXTColorP
Date Posted: 11 April 2006 at 3:22am

Hello,

I am using XTToolkit V4.1 with Visual C++ 7.1 and I have the following problem with CXTColorPopup.

When this popup window is opened, it switches to toolkit resources.
So, as long as this dialog is visible, the main application can not load
any resources. Loading resources from the main application may be necessary, for example, if the main window receives a WM_PAINT message, because the user moves the color picker dialog window, and the main window needs repainting.

Any attempt to load resources from the main application from within my WM_PAINT handler function causes a crash, because LoadString() fails, as long as a color popup window is visible.

The same source code, however, seems to work fine with toolkit version 10.1, but at the moment I do not want to port my application to V10.1.

Is this a bug of toolkit version 4.1? Is there some workaround?
Can anybody help me?

horei




Replies:
Posted By: Oleg
Date Posted: 11 April 2006 at 7:35am
Yes, it was bug of 4.1. iin toolkitPro all resources loaded using XTPResourceManager. you can patch sources to remove XT_MANAGE_STATE macros from CXTColorPopup.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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