Visual C++ and MFC Fundamentals Chapter 18: Progress-Based Controls
- Using the Properties window, change its Orientation property to
1 – ccOrientationVertical - On the dialog box, right-click the ProgressBar and click Copy. Right-click anywhere
on the dialog box and click Paste many times until you get 10 ProgressBar controls - Design the dialog box as follows:
- Change the IDs of the top Static Text controls and Add a CString Value Variable for
each. Also, set the IDs of the ProgressBar controls and add a Control Variable for
each as follows:
Control ID to Set Caption
Align
Text
Control
Variable
Value Variable
Static Text IDC_VAL_BLOOD 000 Center m_ValBlood
Static Text IDC_VAL_HEART 000 Center m_ValHeart
Static Text IDC_VAL_KIDNEY 000 Center m_ValKidney
Static Text IDC_VAL_BRAIN 000 Center m_ValBrain
Static Text IDC_VAL_LLUNG 000 Center m_ValLLung
Static Text IDC_VAL_RLUNG 000 Center m_ValRLung
Static Text IDC_VAL_PANCREAS 000 Center m_ValPancreas