![]() |
Resource DLL |
Post Reply
|
| Author | |
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Topic: Resource DLLPosted: 21 February 2008 at 12:41pm |
|
If an application uses a resource dll, and needs to add support for the Office 2007 theme, can the:
#include "Styles\Office2007Blue\Office2007Blue.rc"
be added to the resource dll, or must be be added to the applications .rc2 file?
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 February 2008 at 2:38pm |
|
HINSTANCE hResDLL = LoadLibrary("Resource.dll");
CMainFrame::CMainFrame()
{
XTPSkinManager()->GetResourceFile()->SetModuleHandle(hResDLL);
XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLUE.INI"));
}
Something like that.
|
|
![]() |
|
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 February 2008 at 2:46pm |
|
I wish we could use LoadSkin, however our applications use unicode/unicows and the Armadillo protection package, which breaks the Codejock Skin stuff.
However, in our case, we can use the normal theme logic, but it requires us to use the:
#include "Styles\Office2007Blue\Office2007Blue.rc"
in our applications .rc2 file.
Since we have several applications that use a common resource dll, it would make more sense (and save memory) to place the Office2007Blue.rc stuff in the resource dll. However, we cannot get it to work for some reason.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 February 2008 at 3:13pm |
|
Hi, You need specify ini file:
XTPOffice2007Images()->SetHandle(hModule, _T("OFFICE2007BLUE.INI"));
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |