Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPTaskDialog hWnd member always NULL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTaskDialog hWnd member always NULL

 Post Reply Post Reply
Author
Message
XavierDev View Drop Down
Newbie
Newbie
Avatar

Joined: 04 May 2010
Location: France
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote XavierDev Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTaskDialog hWnd member always NULL
    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
Back to Top
XavierDev View Drop Down
Newbie
Newbie
Avatar

Joined: 04 May 2010
Location: France
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote XavierDev Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
XavierDev View Drop Down
Newbie
Newbie
Avatar

Joined: 04 May 2010
Location: France
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote XavierDev Quote  Post ReplyReply Direct Link To This Post 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
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.