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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Progress bar problem.

Progress bar problem.

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 4 Posters 0 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.
  • D Offline
    D Offline
    Deepak Samuel
    wrote on last edited by
    #1

    Hi, I have a progress bar and I set the range using m_datprog.SetRange(0,Prog) The problem I have is that the progress bar is full before it reaches the maximum limit (prog). Any help would be appreciated. Thanks, DS

    P H D 4 Replies Last reply
    0
    • D Deepak Samuel

      Hi, I have a progress bar and I set the range using m_datprog.SetRange(0,Prog) The problem I have is that the progress bar is full before it reaches the maximum limit (prog). Any help would be appreciated. Thanks, DS

      P Offline
      P Offline
      Programm3r
      wrote on last edited by
      #2

      Hi, Are you using a timer with the progress bar? Cause it sounds like you just set the progressbar, but never increment it?!

      Regards Programm3r

      1 Reply Last reply
      0
      • D Deepak Samuel

        Hi, I have a progress bar and I set the range using m_datprog.SetRange(0,Prog) The problem I have is that the progress bar is full before it reaches the maximum limit (prog). Any help would be appreciated. Thanks, DS

        P Offline
        P Offline
        Programm3r
        wrote on last edited by
        #3

        I think this might help you.... http://www.codeproject.com/miscctrl/ProgressBar.asp?df=100&forumid=12&exp=0&select=416338[^]

        Regards Programm3r

        1 Reply Last reply
        0
        • D Deepak Samuel

          Hi, I have a progress bar and I set the range using m_datprog.SetRange(0,Prog) The problem I have is that the progress bar is full before it reaches the maximum limit (prog). Any help would be appreciated. Thanks, DS

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

          See CProgressCtrl::SetPos(...)

          _**


          **_

          WhiteSky


          1 Reply Last reply
          0
          • D Deepak Samuel

            Hi, I have a progress bar and I set the range using m_datprog.SetRange(0,Prog) The problem I have is that the progress bar is full before it reaches the maximum limit (prog). Any help would be appreciated. Thanks, DS

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

            If you set the control's range with SetRange(0, 100), and then call SetPos(125) part-way through some process, the control will indeed show 100% even though the process is not done. Does that sound like what you might have?


            "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

            "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