Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPOffice2007Image no longer working in 15.0
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPOffice2007Image no longer working in 15.0

 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: CXTPOffice2007Image no longer working in 15.0
    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)
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: 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
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: 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)
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: 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)
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: 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)
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: 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
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: 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)
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.047 seconds.