473,382 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1442
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Oliver Spiesshofer | last post by:
Hi, I have a script which takes some time to execute. I would like to return intermediary results during the execution. what would be the best thing to do? So far there are no results until...
0
by: Donal McWeeney | last post by:
Hi, I'm currently playing with a custom composite control at the moment and I can get it to get the posted data back in the control - however not the way I want it to. If I specify the...
11
by: Hoku | last post by:
I am using dual monitors on a dual head ATI AGP4x video card. I installed the Nov 11 2005 release of ATI's catalyst control center with Hydravision to manage the dual monitor setup. I recently...
12
by: joey.powell | last post by:
Hello, I have an app that uses a tab control with several tab pages. Sometimes some of the processing initiated on one of the tab pages gets busy doing stuff that is farmed out to worker...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.