Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Resource switching problem with CXTColorP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resource switching problem with CXTColorP

 Post Reply Post Reply
Author
Message
horei View Drop Down
Newbie
Newbie


Joined: 11 April 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote horei Quote  Post ReplyReply Direct Link To This Post Topic: Resource switching problem with CXTColorP
    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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.063 seconds.