Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - How to close a modeless XTPTaskDialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to close a modeless XTPTaskDialog

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 647
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: How to close a modeless XTPTaskDialog
    Posted: 12 January 2010 at 6:42pm
Hi,
 
I have created a modeless CXTPTaskDialog derived dialog (using dlg.Create()). I create the dialog add some texts, hides all buttons and so on.
However I cannot seem to close the dialog again correctly. I call: dlg.DestroyWindow(), but gets an error in TaskDialogCallbackProc at the point: pThis->OnDialogDestroyed(); since this seems to be NULL ?
 
What do I do wrong, please help?
 
-cpede
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 647
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2010 at 2:56am
I'm bumping this, since I'm in a hurry (and the crash comes in the beginning of my app. )
 
-cpede
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 647
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2010 at 2:33am
Solved!
 
Changing from v13.0.0 to v13.2.1 now correctly accepts DestroyWindow without exception.
 
-cpede
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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.125 seconds.