HtmlHelp issue and solution |
Post Reply |
Author | |
Joe19
Newbie Joined: 11 May 2007 Status: Offline Points: 14 |
Post Options
Thanks(0)
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); |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just curious, why you had SetAutoApplyNewThreads(FALSE) ?
|
|
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 |