Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - XTP11.2 skin problem for regular dll
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTP11.2 skin problem for regular dll

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


Joined: 16 May 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote soyzhc Quote  Post ReplyReply Direct Link To This Post Topic: XTP11.2 skin problem for regular dll
    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



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.