Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Task Dialog Timeout


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Oct 10, 2016 12:53 PM Last Post By: Michael Thomason
Michael Thomason

Posts: 14
Registered: 9/6/10
Task Dialog Timeout  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 10, 2016 11:02 AM
Has anyone developed a "timeout" value using TTaskDialog. I need to display a task dialog but have it close on a timeout value. I am having trouble figuring out how to send is a "close" message as if OK was clicked.

Edited by: Michael Thomason on Oct 10, 2016 11:02 AM
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Task Dialog Timeout [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 10, 2016 11:21 AM   in response to: Michael Thomason in response to: Michael Thomason
Michael wrote:

Has anyone developed a "timeout" value using TTaskDialog. I need
to display a task dialog but have it close on a timeout value. I am
having trouble figuring out how to send is a "close" message as if
OK was clicked.

Enable the ttfCallbackTimer flag in the TTaskDialog.Flags property, and then
in the TTaskDialog.OnTimer event you can send a TDM_CLICK_BUTTON message
to the TTaskDialog.Handle window if your desired timeout elapses.

https://msdn.microsoft.com/en-us/library/windows/desktop/bb787499.aspx

--
Remy Lebeau (TeamB)
Michael Thomason

Posts: 14
Registered: 9/6/10
Re: Task Dialog Timeout  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 10, 2016 12:53 PM   in response to: Michael Thomason in response to: Michael Thomason
THANK YOU VERY MUCH!
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02