Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in using CString in Win32 dynamic library Pin
nisha000005-Aug-08 4:16
nisha000005-Aug-08 4:16 
AnswerRe: Problem in using CString in Win32 dynamic library Pin
Mark Salsbery5-Aug-08 5:35
Mark Salsbery5-Aug-08 5:35 
QuestionAn unhandled exception of type 'System.AccessViolationException' occurred in Test.exe [modified] Pin
Le@rner5-Aug-08 2:37
Le@rner5-Aug-08 2:37 
AnswerRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Cedric Moonen5-Aug-08 2:44
Cedric Moonen5-Aug-08 2:44 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Le@rner5-Aug-08 18:12
Le@rner5-Aug-08 18:12 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Cedric Moonen5-Aug-08 21:08
Cedric Moonen5-Aug-08 21:08 
QuestionSearching for C++ classes (MFC) gathering media infos Pin
Ralf Lohmueller5-Aug-08 2:10
Ralf Lohmueller5-Aug-08 2:10 
QuestionCDialog wipes out when switching to a different application Pin
bxveer5-Aug-08 1:53
bxveer5-Aug-08 1:53 
I have a VC++ app that uses a progress dialog that contains a CProgressCtrl to indicate progress of a task. When the app kicks of a task, this dialog is launched as a modal dialog and progress of the task is indicated by the CProgressCtrl.

Issue
-----
For tasks that take extended period of time, the progress dialog blanks out (becomes a blank white rectangle) as soon as user selects a different app. But the processing continues as usual. The dialog is closed when the task is completed. Users are getting confused by this behavior since they are not sure if the app went into an infinite loop or is processing normally since there is no indication of progress in the dialog. They just have to give it time or kill it.

I am trying to figure out how to maintain the progress indication in this dialog irrespective of user switching apps. Any suggestions are very much appreciated.

So far, I tried the following, based on posts in this board, without success.

1. Force the dialog to stay on top of all windows in the desktop by including the following statement in OnInitDialog
SetWindowPos(&this->wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);

2. Calling a Refresh function in the dialog, containing the following statements, periodically during the progression of the task

SetForegroundWindow();
SetFocus();
AnswerRe: CDialog wipes out when switching to a different application Pin
sudhir_Kumar5-Aug-08 2:08
sudhir_Kumar5-Aug-08 2:08 
GeneralRe: CDialog wipes out when switching to a different application Pin
bxveer5-Aug-08 22:05
bxveer5-Aug-08 22:05 
AnswerRe: CDialog wipes out when switching to a different application Pin
Saurabh.Garg5-Aug-08 2:11
Saurabh.Garg5-Aug-08 2:11 
GeneralRe: CDialog wipes out when switching to a different application Pin
bxveer5-Aug-08 22:03
bxveer5-Aug-08 22:03 
QuestionUSB Data Pin
mirtu5-Aug-08 1:31
mirtu5-Aug-08 1:31 
AnswerRe: USB Data Pin
Cedric Moonen5-Aug-08 1:36
Cedric Moonen5-Aug-08 1:36 
GeneralRe: USB Data Pin
mirtu5-Aug-08 1:39
mirtu5-Aug-08 1:39 
GeneralRe: USB Data Pin
Cedric Moonen5-Aug-08 1:44
Cedric Moonen5-Aug-08 1:44 
GeneralRe: USB Data Pin
mirtu5-Aug-08 1:58
mirtu5-Aug-08 1:58 
GeneralRe: USB Data Pin
Cedric Moonen5-Aug-08 2:03
Cedric Moonen5-Aug-08 2:03 
GeneralRe: USB Data Pin
mirtu5-Aug-08 2:12
mirtu5-Aug-08 2:12 
GeneralRe: USB Data Pin
mirtu5-Aug-08 18:08
mirtu5-Aug-08 18:08 
QuestionUser interface Pin
kDevloper5-Aug-08 1:06
kDevloper5-Aug-08 1:06 
AnswerRe: User interface Pin
SandipG 5-Aug-08 1:12
SandipG 5-Aug-08 1:12 
AnswerRe: User interface Pin
sudhir_Kumar5-Aug-08 1:56
sudhir_Kumar5-Aug-08 1:56 
AnswerRe: User interface Pin
David Crow5-Aug-08 3:24
David Crow5-Aug-08 3:24 
QuestionWindow Refresh problem Pin
manoharbalu5-Aug-08 0:48
manoharbalu5-Aug-08 0:48 

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.