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

C / C++ / MFC

 
QuestionEnum printers Pin
vikramlinux26-Mar-06 19:42
vikramlinux26-Mar-06 19:42 
AnswerRe: Enum printers Pin
includeh1026-Mar-06 21:30
includeh1026-Mar-06 21:30 
QuestionDisable a progress bar Pin
ariesaloksingh26-Mar-06 18:53
ariesaloksingh26-Mar-06 18:53 
AnswerRe: Disable a progress bar Pin
Nibu babu thomas26-Mar-06 19:41
Nibu babu thomas26-Mar-06 19:41 
GeneralRe: Disable a progress bar Pin
ariesaloksingh26-Mar-06 19:57
ariesaloksingh26-Mar-06 19:57 
GeneralRe: Disable a progress bar Pin
Rage26-Mar-06 20:00
professionalRage26-Mar-06 20:00 
GeneralRe: Disable a progress bar Pin
ariesaloksingh26-Mar-06 21:57
ariesaloksingh26-Mar-06 21:57 
GeneralRe: Disable a progress bar Pin
Rage26-Mar-06 23:52
professionalRage26-Mar-06 23:52 
Explanantion of what goes wrong :

//Progress Bar
m_mprogress.SetRange(0,1);


With this you set the range of your progress bar from 0 to 1, so it has only one step !

m_mprogress.SetPos('1');


With this you set the position of the progress bar to 1, which is the end boundary of the progress bar you've set with SetRange(0,1);

What you need to do is following :

1. Compute the number of times you will call the function you want to monitor with the progress bar (let's say it is 'n')
2. Initialize the progress bar with m_mprogress.SetRange(0,n);
3. Everytime you want to incremente the progress bar, call m_mprogress.StepIt();

Hope this helps.


~RaGE();
GeneralRe: Disable a progress bar Pin
FarPointer2-Apr-06 5:00
FarPointer2-Apr-06 5:00 
GeneralRe: Disable a progress bar Pin
Nibu babu thomas26-Mar-06 20:02
Nibu babu thomas26-Mar-06 20:02 
AnswerRe: Disable a progress bar Pin
Michael Dunn27-Mar-06 9:03
sitebuilderMichael Dunn27-Mar-06 9:03 
QuestionPlease read it Pin
baldha rakesh26-Mar-06 18:44
baldha rakesh26-Mar-06 18:44 
AnswerRe: Please read it Pin
Stephen Hewitt26-Mar-06 19:15
Stephen Hewitt26-Mar-06 19:15 
GeneralRe: Please read it Pin
baldha rakesh26-Mar-06 19:29
baldha rakesh26-Mar-06 19:29 
GeneralRe: Please read it Pin
Stephen Hewitt26-Mar-06 19:32
Stephen Hewitt26-Mar-06 19:32 
AnswerRe: Please read it Pin
krmed27-Mar-06 5:11
krmed27-Mar-06 5:11 
Questionplaying flash files on dialog box without using Activex Control Pin
RahulOP26-Mar-06 18:21
RahulOP26-Mar-06 18:21 
AnswerRe: playing flash files on dialog box without using Activex Control Pin
Stephen Hewitt26-Mar-06 19:36
Stephen Hewitt26-Mar-06 19:36 
AnswerRe: playing flash files on dialog box without using Activex Control Pin
Eytukan26-Mar-06 21:53
Eytukan26-Mar-06 21:53 
Questionfonts: concept and samples Pin
includeh1026-Mar-06 17:16
includeh1026-Mar-06 17:16 
AnswerRe: fonts: concept and samples Pin
Cool Ju26-Mar-06 20:02
Cool Ju26-Mar-06 20:02 
QuestionHow to associate a scrollbar with image Pin
anilksingh26-Mar-06 17:15
anilksingh26-Mar-06 17:15 
AnswerRe: How to associate a scrollbar with image Pin
includeh1026-Mar-06 17:28
includeh1026-Mar-06 17:28 
AnswerRe: How to associate a scrollbar with image Pin
Hamid_RT26-Mar-06 17:46
Hamid_RT26-Mar-06 17:46 
QuestionAbout SDI Programming Pin
VPNampoothiri26-Mar-06 17:07
VPNampoothiri26-Mar-06 17:07 

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.