SlideShare a Scribd company logo
Progress
MFC Progress
MFC Progress
MFC Progress
MFC Progress
MFC Progress
Add the following variables:
Ctrl ID Var name Category Var type
IDC_SLIDER m_ctrlSlider Control CSliderCtrl
IDC_PROGRESS1 m_ctrlProgress Control CProgressCtrl
• Initialize the vars in: CProgressDlg::OnInitDialog()
……………..
// TODO: Add extra initialization here
m_ctrlSlider.SetRange(0, 100);
m_ctrlSlider.SetTicFreq(10);
m_ctrlProgress.SetRange(0, 100);
return TRUE; // return TRUE unless you set the
//focus to a control
}
MFC Progress
MFC Progress
void CProgressDlg::OnHScroll(UINT nSBCode, UINT
nPos, CScrollBar* pScrollBar)
{
// TODO: Add your message handler code here
and/or call default
int CurPos = m_ctrlSlider.GetPos();
m_ctrlProgress.SetPos(CurPos);
CDialogEx::OnHScroll(nSBCode, nPos, pScrollBar);
}
MFC Progress

More Related Content

PPTX
PPTX
PPTX
DOCX
Program to illustrate Switch, Goto and Exit statements.
DOC
VLSI Sequential Circuits II
PDF
Open GL Tutorial10
DOCX
Pratik Bakane C++
Program to illustrate Switch, Goto and Exit statements.
VLSI Sequential Circuits II
Open GL Tutorial10
Pratik Bakane C++

What's hot (19)

PDF
C++ programs
DOCX
Pratik Bakane C++
DOCX
bank management system
DOCX
Jarmo van de Seijp Shadbox ERC223
DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
DOC
Praktikum Komputasi Statistika
PDF
20090622 Vimm4
DOCX
Circular queue
DOCX
Pratik Bakane C++
PPTX
Sas plot
RTF
DOCX
Oop lab report
DOCX
Basic Programs of C++
DOCX
Experement no 6
DOCX
Bti1022 lab sheet 9 10
TXT
Robot by gulnaz
PPTX
random forest regression
C++ programs
Pratik Bakane C++
bank management system
Jarmo van de Seijp Shadbox ERC223
Pratik Bakane C++
Pratik Bakane C++
Praktikum Komputasi Statistika
20090622 Vimm4
Circular queue
Pratik Bakane C++
Sas plot
Oop lab report
Basic Programs of C++
Experement no 6
Bti1022 lab sheet 9 10
Robot by gulnaz
random forest regression
Ad

More from Razvan Raducanu, PhD (20)

PPTX
12. edit record
PPTX
11. delete record
PPTX
10. view one record
PPTX
9. add new record
PPTX
8. vederea inregistrarilor
PPTX
PPTX
6. hello popescu 2
PPTX
5. hello popescu
PPTX
4. forme in zend framework 3
PPTX
3. trimiterea datelor la vederi
PPTX
2.routing in zend framework 3
PPTX
1. zend framework intro
PPTX
18. images in symfony 4
PPTX
17. delete data
PPTX
16. edit data
PPTX
15. view single data
PPTX
14. add data in symfony4
PPTX
13. view data
PPTX
12.doctrine view data
PPTX
11. move in Symfony 4
12. edit record
11. delete record
10. view one record
9. add new record
8. vederea inregistrarilor
6. hello popescu 2
5. hello popescu
4. forme in zend framework 3
3. trimiterea datelor la vederi
2.routing in zend framework 3
1. zend framework intro
18. images in symfony 4
17. delete data
16. edit data
15. view single data
14. add data in symfony4
13. view data
12.doctrine view data
11. move in Symfony 4
Ad

Recently uploaded (20)

PDF
VCE English Exam - Section C Student Revision Booklet
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Cell Structure & Organelles in detailed.
PPTX
Pharma ospi slides which help in ospi learning
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Final Presentation General Medicine 03-08-2024.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Computing-Curriculum for Schools in Ghana
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
master seminar digital applications in india
VCE English Exam - Section C Student Revision Booklet
2.FourierTransform-ShortQuestionswithAnswers.pdf
Orientation - ARALprogram of Deped to the Parents.pptx
Cell Structure & Organelles in detailed.
Pharma ospi slides which help in ospi learning
STATICS OF THE RIGID BODIES Hibbelers.pdf
Cell Types and Its function , kingdom of life
Supply Chain Operations Speaking Notes -ICLT Program
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Final Presentation General Medicine 03-08-2024.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Computing-Curriculum for Schools in Ghana
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
Yogi Goddess Pres Conference Studio Updates
Microbial disease of the cardiovascular and lymphatic systems
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Classroom Observation Tools for Teachers
master seminar digital applications in india

MFC Progress

  • 7. Add the following variables: Ctrl ID Var name Category Var type IDC_SLIDER m_ctrlSlider Control CSliderCtrl IDC_PROGRESS1 m_ctrlProgress Control CProgressCtrl
  • 8. • Initialize the vars in: CProgressDlg::OnInitDialog() …………….. // TODO: Add extra initialization here m_ctrlSlider.SetRange(0, 100); m_ctrlSlider.SetTicFreq(10); m_ctrlProgress.SetRange(0, 100); return TRUE; // return TRUE unless you set the //focus to a control }
  • 11. void CProgressDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { // TODO: Add your message handler code here and/or call default int CurPos = m_ctrlSlider.GetPos(); m_ctrlProgress.SetPos(CurPos); CDialogEx::OnHScroll(nSBCode, nPos, pScrollBar); }