Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSetTimer ? Pin
Brian van der Beek23-Oct-03 2:06
Brian van der Beek23-Oct-03 2:06 
AnswerRe: SetTimer ? Pin
Maximilien23-Oct-03 2:34
Maximilien23-Oct-03 2:34 
AnswerRe: SetTimer ? Pin
jhwurmbach23-Oct-03 4:10
jhwurmbach23-Oct-03 4:10 
GeneralRe: SetTimer ? Pin
Brian van der Beek23-Oct-03 4:32
Brian van der Beek23-Oct-03 4:32 
GeneralRe: SetTimer ? Pin
jhwurmbach23-Oct-03 4:40
jhwurmbach23-Oct-03 4:40 
AnswerRe: SetTimer ? Pin
John R. Shaw23-Oct-03 4:33
John R. Shaw23-Oct-03 4:33 
QuestionSetTimer ? Pin
Brian van der Beek23-Oct-03 2:05
Brian van der Beek23-Oct-03 2:05 
AnswerRe: SetTimer ? Pin
Bryster23-Oct-03 4:07
Bryster23-Oct-03 4:07 
I am not sure if this will help, but does this "lengthy process" have a DO/FOR/WHILE loop? If so the task is fairly straight forward. Here is an example of a ProgressBar function:

void CMyDialog::ProgressBar()
{
int percentage=0; //variable initialisation
char temp[100]; //

//The following line will calculate the Progress bar percentage
//The "Records" is a global UINT which increments each time through the loop
//The "TotalRecords" is the total number of Records in the loop
percentage=(int)(((float)Records/(float)TotalRecords)*100.0);

//"m_Progress" is the variable attached to your dialog
//This will set the position of the progress bar depending on the percentage
m_Progress.SetPos(percentage);

//This will update the "m_Progress" variable with the new position
UpdateData(FALSE);
}

Call this function every time you wish to update the progress bar.
Dont forget to update the "Records" variable before calling this function.

Hope this helps.
Smile | :)
GeneralNeed a satisfying logger. Pin
d00_ape23-Oct-03 2:00
sussd00_ape23-Oct-03 2:00 
GeneralRe: Need a satisfying logger. Pin
Mike O'Neill23-Oct-03 15:36
Mike O'Neill23-Oct-03 15:36 
QuestionHow to append a text in a edit box Pin
Deepak Samuel23-Oct-03 0:09
Deepak Samuel23-Oct-03 0:09 
AnswerRe: How to append a text in a edit box Pin
abc87623-Oct-03 0:38
abc87623-Oct-03 0:38 
AnswerRe: How to append a text in a edit box Pin
David Crow23-Oct-03 3:38
David Crow23-Oct-03 3:38 
GeneralTaskbar Button in Dialog Based Application Pin
Thanasis Pantelopoulos22-Oct-03 23:50
Thanasis Pantelopoulos22-Oct-03 23:50 
GeneralRe: Taskbar Button in Dialog Based Application Pin
Thanasis Pantelopoulos23-Oct-03 2:46
Thanasis Pantelopoulos23-Oct-03 2:46 
GeneralRe: Taskbar Button in Dialog Based Application Pin
Maximilien23-Oct-03 4:16
Maximilien23-Oct-03 4:16 
GeneralRe: Taskbar Button in Dialog Based Application Pin
Atlantys23-Oct-03 12:06
Atlantys23-Oct-03 12:06 
GeneralConsole Pin
hph22-Oct-03 22:58
hph22-Oct-03 22:58 
GeneralRe: Console Pin
valikac23-Oct-03 5:56
valikac23-Oct-03 5:56 
QuestionOpenGL animation, which is better: using PFD_DOUBLEBUFFER or Drawing to DIB? Pin
lxy22-Oct-03 21:47
lxy22-Oct-03 21:47 
AnswerAnyone know? Pin
lxy23-Oct-03 16:23
lxy23-Oct-03 16:23 
Questionhow to make a dialog under the main window? Pin
Jefferson Liu22-Oct-03 21:30
Jefferson Liu22-Oct-03 21:30 
AnswerRe: how to make a dialog under the main window? Pin
Ravi Bhavnani22-Oct-03 21:41
professionalRavi Bhavnani22-Oct-03 21:41 
GeneralRe: how to make a dialog under the main window? Pin
Atif Mushtaq22-Oct-03 23:03
Atif Mushtaq22-Oct-03 23:03 
AnswerRe: how to make a dialog under the main window? Pin
Anthony_Yio22-Oct-03 22:08
Anthony_Yio22-Oct-03 22:08 

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.