Print Page | Close Window

CXTPOffice2007Image no longer working in 15.0

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=17881
Printed Date: 19 June 2025 at 3:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPOffice2007Image no longer working in 15.0
Posted By: evoX
Subject: CXTPOffice2007Image no longer working in 15.0
Date Posted: 14 February 2011 at 8:04pm

CXTPOffice2007Image and XTPOffice2007Images() are no longer working in 15.0 release.

I have this code to load the status bar bitmap...

CXTPOffice2007Image* pImage = XTPOffice2007Images()->LoadFile(_T("STATUSBARLIGHT"));

how can I change it to compile with 15.0 ?
 
 


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



Replies:
Posted By: Oleg
Date Posted: 15 February 2011 at 2:07am
Hi,

XTPOffice2007Images  is now XTPResourceImages
and
CXTPOffice2007Image is CXTPResourceImage.


Please check release notes and url from it for list of all changes.


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


Posted By: evoX
Date Posted: 15 February 2011 at 12:08pm
Thanks ! ...please note that these are not included in the release changes and also in the migration XML

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


Posted By: evoX
Date Posted: 15 February 2011 at 12:44pm
I have another problem

CXTPResourceImage* pImage = XTPResourceImages()->LoadFile(_T("STATUSBARLIGHT"));

pImage is always null.
 
I have a static project, and I have included the office2010.rc file, but the pImage is always null.


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


Posted By: evoX
Date Posted: 16 February 2011 at 10:25am
If I include the office2007.rc file in the project then the image is loaded, why with the office2010 theme can't load the STATUSBARLIGHT image?


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


Posted By: Oleg
Date Posted: 16 February 2011 at 1:40pm
Hi,

Please try add

XTPResourceImages()->SetHandle(AfxGetInstanceHandle(), _T("OFFICE2010BLUE.INI"));
CXTPResourceImage* pImage = XTPResourceImages()->LoadFile(_T("STATUSBARLIGHT"));
VERIFY(pImage);



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


Posted By: evoX
Date Posted: 16 February 2011 at 9:14pm

Now it works !, Thanks Oleg ! Thumbs Up



-------------
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