Print Page | Close Window

XTPChartControl resource problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18590
Printed Date: 12 December 2024 at 9:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPChartControl resource problem
Posted By: evoX
Subject: XTPChartControl resource problem
Date Posted: 25 June 2011 at 8:20am
I have a chart control in a dialog application, it works fine, but the application was translated to another language and when I change the language and the application starts with the resources loaded from the German DLL the chart control is not created and OnInitDialog is not called.
I have removed everything from the dialog and left just the chart control without being derived from CXTPChartConrol and the dialog is still not calling oninitdialog and it is not displayed.
 
It seems that there is a problem with the XTPChartControl class which you define in the resource editor and has nothing to do with CXTPChartControl
 
 


-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)



Replies:
Posted By: Oleg
Date Posted: 28 June 2011 at 6:14am
In constructor of your Dialog call

m_wndChartControl.RegisterWindowClass(AfxGetResourceHandle());



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


Posted By: evoX
Date Posted: 28 June 2011 at 8:22pm
Thanks it works!

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 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