Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - HtmlHelp issue and solution
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HtmlHelp issue and solution

 Post Reply Post Reply
Author
Message
Joe19 View Drop Down
Newbie
Newbie


Joined: 11 May 2007
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joe19 Quote  Post ReplyReply Direct Link To This Post Topic: HtmlHelp issue and solution
    Posted: 09 May 2008 at 12:44pm
Just sharing a problem and the solution I wasted a few hours figuring out.
 
When using HtmlHelp and XTPSkinManager I got strange looking coloring on the help window.  It turns out that when creating the HTMLHelp window a thread is used.  If you have
 
XTPSkinManager()->SetAutoApplyNewThreads(FALSE);
 
set, then some of the controls in the help window will be skinned, other parts will not.  The workaround is simple:
 
BOOL bAuto = XTPSkinManager()->GetAutoApplyNewThreads();
XTPSkinManager()->SetAutoApplyNewThreads(TRUE);
HtmlHelp(0, HH_DISPLAY_TOPIC);
if (!bAuto)
   XTPSkinManager()->SetAutoApplyNewThreads(FALSE);
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: 10 May 2008 at 4:43am
Hi,
 
Just curious, why you had SetAutoApplyNewThreads(FALSE) ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.