Click here to Skip to main content
15,921,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltoolbar with icons on left and right Pin
quzi23-Oct-03 5:09
quzi23-Oct-03 5:09 
GeneralRe: toolbar with icons on left and right Pin
Carlos Antollini23-Oct-03 12:18
Carlos Antollini23-Oct-03 12:18 
GeneralRe: toolbar with icons on left and right Pin
quzi25-Oct-03 19:42
quzi25-Oct-03 19:42 
GeneralNext Step in remote App. control Pin
Member 18130723-Oct-03 4:37
Member 18130723-Oct-03 4:37 
GeneralRe: Next Step in remote App. control Pin
Kentamanos23-Oct-03 7:37
Kentamanos23-Oct-03 7:37 
GeneralDrag and Drop Application Pin
Bryster23-Oct-03 3:53
Bryster23-Oct-03 3:53 
GeneralRe: Drag and Drop Application Pin
valikac23-Oct-03 5:51
valikac23-Oct-03 5:51 
GeneralRe: Drag and Drop Application Pin
Michael Dunn23-Oct-03 11:26
sitebuilderMichael Dunn23-Oct-03 11:26 
GeneralCOleDateTime::Format behavior Pin
sagmam23-Oct-03 3:38
sagmam23-Oct-03 3:38 
GeneralRe: COleDateTime::Format behavior Pin
David Crow23-Oct-03 3:53
David Crow23-Oct-03 3:53 
GeneralRe: COleDateTime::Format behavior Pin
sagmam23-Oct-03 5:21
sagmam23-Oct-03 5:21 
GeneralRe: COleDateTime::Format behavior Pin
BadJerry23-Oct-03 5:38
BadJerry23-Oct-03 5:38 
GeneralRe: COleDateTime::Format behavior Pin
sagmam23-Oct-03 5:43
sagmam23-Oct-03 5:43 
GeneralRe: COleDateTime::Format behavior Pin
BadJerry23-Oct-03 6:01
BadJerry23-Oct-03 6:01 
GeneralRe: COleDateTime::Format behavior Pin
sagmam23-Oct-03 6:53
sagmam23-Oct-03 6:53 
GeneralRe: COleDateTime::Format behavior Pin
Atlantys23-Oct-03 6:52
Atlantys23-Oct-03 6:52 
QuestionHow can I disable the Dial-Up dialog box? Pin
Radar9723-Oct-03 2:47
Radar9723-Oct-03 2:47 
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 | :)

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.