![]() |
I Have a problem in OLE Automation dll. |
Post Reply
|
| Author | |
fasol
Newbie
Joined: 07 April 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: I Have a problem in OLE Automation dll.Posted: 07 April 2006 at 1:20am |
|
Now I am developing a ole automation dll. Any theme doesn't work. only the backgound color does. I have refered the KB & sample. I have followed the instruction. The dll example works well. but ours doesn't work I added following codes stdafx.h #define XT_INIT_BY_REGULAR_DLL *.rc2 #include <XTToolkitPro.rc> CWinApp::InitInstance AFX_MANAGE_STATE(AfxGetStaticModuleState()); I changed the setting to static link(also MFC dll) Is there anything more I should concern.
|
|
![]() |
|
fasol
Newbie
Joined: 07 April 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 April 2006 at 10:13pm |
|
2006-04-13_221123_ThemeTest.zip Here is a source code which we've tested. It is not still working. We are using XT Pro 9.81. Is there anybody who knows how it works. I really appreciate your helping. Thanks |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 April 2006 at 9:17am |
|
Hi, The thing is that MFC don't send WM_DRAWITEM back to the button, because it created in another context. See how BOOL PASCAL CWnd::ReflectLastMsg(HWND hWndChild, LRESULT* pResult) works.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
fasol
Newbie
Joined: 07 April 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2006 at 10:56pm |
|
We've solved that problem. Thanks for your help. |
|
![]() |
|
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 |