Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Office 2007 in a DLL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office 2007 in a DLL

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: Office 2007 in a DLL
    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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
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: 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2009 at 4:05am
BTW - I assume I add this code in the EXE :)
Simon HB9DRV
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.109 seconds.