Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Chart Control
  New Posts New Posts RSS Feed - XTPChartControl resource problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPChartControl resource problem

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

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Topic: XTPChartControl resource problem
    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)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 28 June 2011 at 6:14am
In constructor of your Dialog call

m_wndChartControl.RegisterWindowClass(AfxGetResourceHandle());

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
evoX View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 July 2007
Status: Offline
Points: 207
Post Options Post Options   Thanks (0) Thanks(0)   Quote evoX Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2011 at 8:22pm
Thanks it works!
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)
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.203 seconds.