Print Page | Close Window

How to close a modeless XTPTaskDialog

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=15991
Printed Date: 10 June 2024 at 12:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to close a modeless XTPTaskDialog
Posted By: cpede
Subject: How to close a modeless XTPTaskDialog
Date 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



Replies:
Posted By: cpede
Date 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++)


Posted By: cpede
Date 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++)



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