Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - I Have a problem in OLE Automation dll.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I Have a problem in OLE Automation dll.

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


Joined: 07 April 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote fasol Quote  Post ReplyReply Direct Link To This Post 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
#include <XTToolkitPro.h> // Xtreme Toolkit Pro component library

*.rc2

#include <XTToolkitPro.rc>

CWinApp::InitInstance

    AFX_MANAGE_STATE(AfxGetStaticModuleState());
    // initialize the toolkit with the correct resource instance.
    XTAuxData().InitResources(m_hInstance);
//    xtAfxData.InitResources(m_hInstance);

 CWinApp::InitInstance();

I changed the setting to static link(also MFC dll)

Is there anything more I should concern.

 

Back to Top
fasol View Drop Down
Newbie
Newbie


Joined: 07 April 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote fasol Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
fasol View Drop Down
Newbie
Newbie


Joined: 07 April 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote fasol Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2006 at 10:56pm

We've solved that problem.

Thanks for your help.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.125 seconds.