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

Progress Bar

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminhelp
4 Posts 3 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
    Dhiraj kumar Saini
    wrote on last edited by
    #1

    Hi, I am working on an MFC application where on click of a button some data is being fetched from the server and being diplayed in a CListCtrl But as the data is coming from the server there is a bit of flickering. So want i want to show a progress bar showing the message that the data is being loaded. once data is displayed it should show message done. Please help me. Dhiraj

    D P 2 Replies Last reply
    0
    • D Dhiraj kumar Saini

      Hi, I am working on an MFC application where on click of a button some data is being fetched from the server and being diplayed in a CListCtrl But as the data is coming from the server there is a bit of flickering. So want i want to show a progress bar showing the message that the data is being loaded. once data is displayed it should show message done. Please help me. Dhiraj

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

      Dhiraj kumar Saini wrote:

      Please help me.

      Since you are using MFC, have you looked at CProgressCtrl?

      "Love people and use things, not love things and use people." - Unknown

      "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

      1 Reply Last reply
      0
      • D Dhiraj kumar Saini

        Hi, I am working on an MFC application where on click of a button some data is being fetched from the server and being diplayed in a CListCtrl But as the data is coming from the server there is a bit of flickering. So want i want to show a progress bar showing the message that the data is being loaded. once data is displayed it should show message done. Please help me. Dhiraj

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

        as far as flicker is concerened i think u r repopulating the list control again and again in a loop, this creates flicker, if this is the case create a flag variable and append only the latest data and not the whole data again and again. -------------------------------------------------------------- if u want to use progress bar then u should know the total amount of data which u will receive from server that will be max limit 100% for progress bar. Increament the bar depending on amount of data received at each time. if u dont know total amount of data then simply display some animation untill process is finished.

        D 1 Reply Last reply
        0
        • P pc_dev

          as far as flicker is concerened i think u r repopulating the list control again and again in a loop, this creates flicker, if this is the case create a flag variable and append only the latest data and not the whole data again and again. -------------------------------------------------------------- if u want to use progress bar then u should know the total amount of data which u will receive from server that will be max limit 100% for progress bar. Increament the bar depending on amount of data received at each time. if u dont know total amount of data then simply display some animation untill process is finished.

          D Offline
          D Offline
          Dhiraj kumar Saini
          wrote on last edited by
          #4

          Hi, Actually the data received from the server is not fixed and is dynamic. Can you give me any code of using a CprogresCtrl

          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