Print Page | Close Window

CXTPTaskDialog hWnd member always NULL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17604
Printed Date: 24 June 2025 at 3:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTaskDialog hWnd member always NULL
Posted By: XavierDev
Subject: CXTPTaskDialog hWnd member always NULL
Date Posted: 25 November 2010 at 10:04am
Hello,

I have a class derived from CXTPTaskDialog.
When I instanciate it, its hWnd is NULL, so I can not PostMessage() to it (Vista, Win7).

Do you know how I can get a valid hWnd ??

Thanks in advance



-------------
VS2008 SP1
XTP 12.0.0



Replies:
Posted By: XavierDev
Date Posted: 29 November 2010 at 5:52am
I have found that CXTPTaskDialog provides the member m_hwndTaskDialog which is not NULL. I can PostMessage() to it under XP but it still doesn't work on Win7.




-------------
VS2008 SP1
XTP 12.0.0


Posted By: Michl
Date Posted: 15 December 2010 at 4:57am
Look at this thread. This is a similar problem. I hope it can help you.

http://forum.codejock.com/forum_posts.asp?TID=17077&title=cxtptaskdialog


Posted By: XavierDev
Date Posted: 15 December 2010 at 5:03am
I have just found this thread yesterday, and yes it works now perfectly.

Thank you very much for your help.


-------------
VS2008 SP1
XTP 12.0.0



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