470,612 Members | 2,521 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

How do I return control to dialog during processing?

Rob
Hi,

I've developed a basic dialog program using the MFC foundation wizard.

Upon pushing one of the buttons, a time consuming processing is invoked,
during which the user cannot access the 'Cancel' pushbutton, nor can the
processing in question update any fields in the dialog box. It can updated
the progress bar however.

In order to release the window during this time consuming processing to
allow the user to cancel the processing, do I have to create a separate
thread? Will OnIdol() be a feasible option? Are there any simpler options
that I'm overlooking?

Thanks
Rob
Apr 12 '07 #1
1 1347
On 12 Apr, 08:25, "Rob" <miller...@ozemail.com.auwrote:
Hi,

I've developed a basic dialog program using the MFC foundation wizard.

Upon pushing one of the buttons, a time consuming processing is invoked,
during which the user cannot access the 'Cancel' pushbutton, nor can the
processing in question update any fields in the dialog box. It can updated
the progress bar however.

In order to release the window during this time consuming processing to
allow the user to cancel the processing, do I have to create a separate
thread? Will OnIdol() be a feasible option? Are there any simpler options
that I'm overlooking?
A thread is probably best but there might be other solutions, this
however is off-topic here since it's not a C++ language concern. For
further help with MFC and other MS technologies try one of the
following groups:
microsoft.public.vc.mfc
microsoft.public.vc.language
microsoft.public.dotnet.languages.vc

--
Erik Wikström

Apr 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.