Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding a Progress Bar

Adding a Progress Bar

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
5 Posts 5 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Javagal Srinath
    wrote on last edited by
    #1

    Hi I am very new to VC++ ,I want to add a progress bar. Can anybody tell me how to put a progress bar in an application Waiting for reply

    G H A D 4 Replies Last reply
    0
    • J Javagal Srinath

      Hi I am very new to VC++ ,I want to add a progress bar. Can anybody tell me how to put a progress bar in an application Waiting for reply

      G Offline
      G Offline
      Galatei
      wrote on last edited by
      #2

      Hi, Use CProgressCtrl class or CreateWindow with PROGRESS_CLASS as its class name. Regards

      1 Reply Last reply
      0
      • J Javagal Srinath

        Hi I am very new to VC++ ,I want to add a progress bar. Can anybody tell me how to put a progress bar in an application Waiting for reply

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        You can see two examples of CProgressCtrl class on MSDN


        WhiteSky


        1 Reply Last reply
        0
        • J Javagal Srinath

          Hi I am very new to VC++ ,I want to add a progress bar. Can anybody tell me how to put a progress bar in an application Waiting for reply

          A Offline
          A Offline
          Amish shah
          wrote on last edited by
          #4

          you can look at msdn sample CMNCTRL2. It has a sample of CProgressCtrl. but as a sample //make a memebr variable CProgressCtrl m_Progress; //in OnInitDialog() m_Progress.Create(WS_VISIBLE | WS_CHILD, rect, this, IDC_PROGRESS); m_Progress.SetRange(0, 30); //set the step by m_Progress.SetStep(2); //increment it m_Progress.StepIt(); //or set position by m_Progress.SetPos(26);

          1 Reply Last reply
          0
          • J Javagal Srinath

            Hi I am very new to VC++ ,I want to add a progress bar. Can anybody tell me how to put a progress bar in an application Waiting for reply

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Javagal Srinath wrote:

            Can anybody tell me how to put a progress bar in an application

            Like you would any other control. With your dialog template open in the resource editor, just select the control (in the Controls window) you want to add and then click the dialog. Move and size as needed.


            "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

            "Judge not by the eye but by the heart." - Native American Proverb

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups