Print Page | Close Window

HtmlHelp issue and solution

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=10574
Printed Date: 28 September 2024 at 5:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HtmlHelp issue and solution
Posted By: Joe19
Subject: HtmlHelp issue and solution
Date 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);



Replies:
Posted By: Oleg
Date Posted: 10 May 2008 at 4:43am
Hi,
 
Just curious, why you had SetAutoApplyNewThreads(FALSE) ?


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



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