Print Page | Close Window

XTP11.2 skin problem for regular 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=14315
Printed Date: 21 November 2024 at 2:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTP11.2 skin problem for regular dll
Posted By: soyzhc
Subject: XTP11.2 skin problem for regular dll
Date Posted: 16 May 2009 at 4:22am
Hi

I have a problem with skinning in a regular dll static link to mfc.

My program is like this:

app.exe dynamic loading ex.dll, then ex.dll static loading stat.dll.

app.exe using sample code "SkinControls"
ex.dll is a mfc extension dll
stat.dll is a regular dll static link to mfc

The Pseudo-code is like this:

// in app.exe
void OnBtn()
{
Load(ex.dll);
FuncEx();
}

// in ex.dll
void CallFuncEx()
{
StaticFun();
}

// in stat.dll
void StaticFun()
{
CMyDlg dlg;
dlg.DoModal();
}

After opening a dialog the window frame is drawn un-skinned with the dark text and then disappears completely after a few seconds (see screenshots).

BTW, I have try
     FinalizeHookManagement();
     InitializeHookManagement();
It work. I just want to know why? can any one explain this problem, very thank you





Best regards






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