Print Page | Close Window

I Have a problem in OLE Automation dll.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3953
Printed Date: 10 November 2025 at 10:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I Have a problem in OLE Automation dll.
Posted By: fasol
Subject: I Have a problem in OLE Automation dll.
Date 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.

 




Replies:
Posted By: fasol
Date Posted: 13 April 2006 at 10:13pm

https://forum.codejock.com/uploads/fasol/2006-04-13_221123_ThemeTest.zip - 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



Posted By: Oleg
Date 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


Posted By: fasol
Date Posted: 23 April 2006 at 10:56pm

We've solved that problem.

Thanks for your help.




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