Click here to Skip to main content
15,889,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Get USB attached Devices ' name using setupDi calls ? Pin
Erudite_Eric5-Jun-13 8:16
Erudite_Eric5-Jun-13 8:16 
QuestionRegular expressions send different result in Visual Studio 2010 and Visual Studio 2008 Pin
BadJerry4-Jun-13 6:19
BadJerry4-Jun-13 6:19 
QuestionHow to mute sound from the speakers in any video file ....MFC.? Pin
mbatra313-Jun-13 19:44
mbatra313-Jun-13 19:44 
AnswerRe: How to mute sound from the speakers in any video file ....MFC.? Pin
ThatsAlok3-Jun-13 20:01
ThatsAlok3-Jun-13 20:01 
AnswerRe: How to mute sound from the speakers in any video file ....MFC.? Pin
David Crow4-Jun-13 3:53
David Crow4-Jun-13 3:53 
QuestionHow to Pause and continue the Progress bar in MFC.? Pin
mbatra313-Jun-13 19:39
mbatra313-Jun-13 19:39 
AnswerRe: How to Pause and continue the Progress bar in MFC.? Pin
ThatsAlok3-Jun-13 20:09
ThatsAlok3-Jun-13 20:09 
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
mbatra313-Jun-13 20:20
mbatra313-Jun-13 20:20 
Hi,

Thanx for the reply. I have used ProgressCtrl.StepIt() function inside OnTimer() so that while playing the video, timer will increment and progress bar also steps up.

I Can't stop this one. Because In StopTimer function I have set the state of the timer and progress bar to zero.

Basically I am incrementing the Progress Bar along with the timer. When User Presses Pause button, both the progress bar as well as timer should stop at their current state. ANd when user presses play button Timer and progress bar should continue from their last stopped state.

I have used ProgressBarCtrl.SetState(PBST_PAUSED); function, this works and progress bar stops at its current state, but its not so smooth, when user presses play button, progress bar increments by not just 1 step, but 3 -4 steps. Also I am not able to stop the timer. it keeps on incrementing.

Please let me know your idea / suggestion to solve this.



Regards,
Mbatra
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
ThatsAlok3-Jun-13 20:29
ThatsAlok3-Jun-13 20:29 
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
mbatra313-Jun-13 21:28
mbatra313-Jun-13 21:28 
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
ThatsAlok3-Jun-13 22:37
ThatsAlok3-Jun-13 22:37 
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
mbatra313-Jun-13 22:44
mbatra313-Jun-13 22:44 
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
ThatsAlok3-Jun-13 23:43
ThatsAlok3-Jun-13 23:43 
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
mbatra313-Jun-13 23:51
mbatra313-Jun-13 23:51 
AnswerRe: How to Pause and continue the Progress bar in MFC.? Pin
David Crow4-Jun-13 3:52
David Crow4-Jun-13 3:52 
GeneralRe: How to Pause and continue the Progress bar in MFC.? Pin
mbatra314-Jun-13 18:46
mbatra314-Jun-13 18:46 
QuestionUseage about OPCODE collision detection Pin
Henry Hong2-Jun-13 22:30
Henry Hong2-Jun-13 22:30 
AnswerRe: Useage about OPCODE collision detection Pin
Richard MacCutchan2-Jun-13 23:17
mveRichard MacCutchan2-Jun-13 23:17 
GeneralRe: Useage about OPCODE collision detection Pin
Henry Hong3-Jun-13 15:55
Henry Hong3-Jun-13 15:55 
GeneralRe: Useage about OPCODE collision detection Pin
Richard MacCutchan3-Jun-13 20:52
mveRichard MacCutchan3-Jun-13 20:52 
GeneralRe: Useage about OPCODE collision detection Pin
Henry Hong3-Jun-13 22:15
Henry Hong3-Jun-13 22:15 
GeneralRe: Useage about OPCODE collision detection Pin
Richard MacCutchan3-Jun-13 22:22
mveRichard MacCutchan3-Jun-13 22:22 
GeneralRe: Useage about OPCODE collision detection Pin
Henry Hong3-Jun-13 22:35
Henry Hong3-Jun-13 22:35 
AnswerRe: Useage about OPCODE collision detection Pin
Chris Losinger4-Jun-13 4:05
professionalChris Losinger4-Jun-13 4:05 
QuestionHow to conditional call a library Pin
thanh_bkhn2-Jun-13 19:00
professionalthanh_bkhn2-Jun-13 19:00 

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.