Print Page | Close Window

Office 2007 in a DLL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=13496
Printed Date: 22 November 2024 at 10:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office 2007 in a DLL
Posted By: Simon HB9DRV
Subject: Office 2007 in a DLL
Date Posted: 25 February 2009 at 10:11am
In the attached picture you see a Modeless Dialog wich is contained in a DLL. I am trying to use 2007 Black in this example.
 
The main application skins OK, no problem, it's great :)
 
I have obviously missed a step out - but what?
  • Menus :(
  • The big Tab at the bottom does not show the current selection but does work
  • Buttons with bitmaps using CXTButton aren't skinning.

I'm sure it's just one step :)



-------------
Simon HB9DRV



Replies:
Posted By: Simon HB9DRV
Date Posted: 25 February 2009 at 10:18am
Originally posted by Simon HB9DRV Simon HB9DRV wrote:

In the attached picture you see a Modeless Dialog wich is contained in a DLL. I am trying to use 2007 Black in this example.
 
The main application skins OK, no problem, it's great :)
 
I have obviously missed a step out - but what?
  • Menus :(
  • The big Tab at the bottom does not show the current selection but does work
  • Buttons with bitmaps using CXTButton aren't skinning.

I'm sure it's just one step :)

I guess the question is really - how to correctly skin a Dialog which is inside a DLL - the rest of the app. skins OK.


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 26 February 2009 at 4:01am
Hi,
 
try add
 
CXTPSkinManagerApiHook::GetInstance()->FinalizeHookManagement();
CXTPSkinManagerApiHook::GetInstance()->InitializeHookManagement();
after you load dll but before you show dialog.


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


Posted By: Simon HB9DRV
Date Posted: 26 February 2009 at 4:05am
Hi Oleg,
 
I don't load the DLL myself - it's just there in the application. I'll call your two lines of code before I make the first call to the dialog in the DLL to see what this does - many thanks for the fast response.


-------------
Simon HB9DRV


Posted By: Simon HB9DRV
Date Posted: 26 February 2009 at 4:05am
BTW - I assume I add this code in the EXE :)

-------------
Simon HB9DRV



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