Print Page | Close Window

CXTPTaskDialog::DoModal not virtual...

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=12101
Printed Date: 14 May 2024 at 11:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTaskDialog::DoModal not virtual...
Posted By: znakeeye
Subject: CXTPTaskDialog::DoModal not virtual...
Date Posted: 08 September 2008 at 10:24am
Can you please make CXTPTaskDialog::DoModal virtual?
 
In my case I have written a CXTPTaskDialog-derived class in which I never want to use the COMCtl32-implementation. Hence, I want to override DoModal to enforce this behavior.



Replies:
Posted By: Oleg
Date Posted: 08 September 2008 at 11:47am
Hi,
 
DoModal has parameter - use or not comctrl32.
 
Just call it as DoModal(FALSE);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 09 September 2008 at 4:49pm
Yes, but I don't want users of CMySpecialTaskDialog to be able to call it with comctrl32=TRUE! Hence, I want to override DoModal() and make sure it is FALSE...


Posted By: Oleg
Date Posted: 10 September 2008 at 12:55am
Hi,
If you have special CMySpecialTaskDialog  you can just add same function without virtual keyword. It will be called instead CXTPTaskDialog::DoModal.
Anyway we will change it for future version. Thanks.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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