Click here to Skip to main content
15,907,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MPEG4 Conversion Pin
Rajesh R Subramanian25-Sep-08 3:58
professionalRajesh R Subramanian25-Sep-08 3:58 
AnswerRe: MPEG4 Conversion Pin
bulg25-Sep-08 7:05
bulg25-Sep-08 7:05 
AnswerRe: MPEG4 Conversion Pin
cmk25-Sep-08 10:27
cmk25-Sep-08 10:27 
AnswerRe: MPEG4 Conversion Pin
Chandrasekharan P25-Sep-08 18:27
Chandrasekharan P25-Sep-08 18:27 
Questionproblem with singleton class Pin
SRKSHOME25-Sep-08 2:50
SRKSHOME25-Sep-08 2:50 
AnswerRe: problem with singleton class Pin
Cedric Moonen25-Sep-08 2:57
Cedric Moonen25-Sep-08 2:57 
GeneralRe: problem with singleton class Pin
SRKSHOME25-Sep-08 3:17
SRKSHOME25-Sep-08 3:17 
QuestionDialog - waiting while control is populated Pin
tiresias225-Sep-08 2:50
tiresias225-Sep-08 2:50 
I have a dialog box which in the OnInitDialog function scans for some system resources and performs a variety of checks to find those which match some criteria - those that match the criteria are added as text to a combo box on the dialog.

The dialog box then appears, with the combo box populated. The user can select a combo box entry and click the dialog's OK button (or Cancel button).

Because all of the checks are done in OnInitDialog, the dialog box does not appear at all until all of the checks are complete. There is only a brief delay in the dialog's appearance on a fast PC, but on older PCs the delay may make the user think nothing is happening.

I think what is needed is for the dialog to appear immediately with a "Scanning resources..." message written on the dialog, and the OK button disabled. The resources are then checked (I'm not sure which function where this could be done) and when complete the combo box is populated and the OK button enabled.

It would be good to allow the user to click the Cancel button while the resource checking is being performed, and this would stop the checking immediately and close the dialog box. This suggests that the resource checking should be done in a separate thread so that the Cancel button would be immediately responsive.

Is there an off-the-shelf CDialog based class available which does this or something similar?

If not, what CDialog function would be the correct place to put my resource checking. It would have to run AFTER the dialog has been fully painted.
AnswerRe: Dialog - waiting while control is populated Pin
Graham Bradshaw25-Sep-08 3:06
Graham Bradshaw25-Sep-08 3:06 
AnswerRe: Dialog - waiting while control is populated Pin
Michael Dunn25-Sep-08 12:31
sitebuilderMichael Dunn25-Sep-08 12:31 
GeneralRe: Dialog - waiting while control is populated Pin
tiresias226-Sep-08 3:03
tiresias226-Sep-08 3:03 
GeneralRe: Dialog - waiting while control is populated Pin
tiresias229-Sep-08 3:32
tiresias229-Sep-08 3:32 
Questiontypelib issue -- GetRecordInfoFromGuids Pin
George_George25-Sep-08 2:35
George_George25-Sep-08 2:35 
QuestionConnecting to SQL Server Express Database Pin
Ali Tavakol25-Sep-08 2:23
Ali Tavakol25-Sep-08 2:23 
QuestionHow to write char buffer to ostream Pin
CodingLover25-Sep-08 2:11
CodingLover25-Sep-08 2:11 
AnswerRe: How to write char buffer to ostream Pin
David Crow25-Sep-08 3:55
David Crow25-Sep-08 3:55 
QuestionIs MFC obsolete? Pin
Christian Flutcher25-Sep-08 2:01
Christian Flutcher25-Sep-08 2:01 
AnswerRe: Is MFC obsolete? Pin
toxcct25-Sep-08 2:14
toxcct25-Sep-08 2:14 
GeneralRe: Is MFC obsolete? Pin
CPallini4-Aug-09 11:39
mveCPallini4-Aug-09 11:39 
AnswerRe: Is MFC obsolete? PinPopular
Rajesh R Subramanian25-Sep-08 2:41
professionalRajesh R Subramanian25-Sep-08 2:41 
GeneralRe: Is MFC obsolete? Pin
Michael Schubert25-Sep-08 2:55
Michael Schubert25-Sep-08 2:55 
GeneralRe: Is MFC obsolete? Pin
Rajesh R Subramanian25-Sep-08 3:03
professionalRajesh R Subramanian25-Sep-08 3:03 
GeneralRe: Is MFC obsolete? Pin
Christian Flutcher25-Sep-08 3:01
Christian Flutcher25-Sep-08 3:01 
GeneralRe: Is MFC obsolete? Pin
Rajesh R Subramanian25-Sep-08 3:13
professionalRajesh R Subramanian25-Sep-08 3:13 
GeneralRe: Is MFC obsolete? Pin
Christian Flutcher25-Sep-08 3:15
Christian Flutcher25-Sep-08 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.