Progress Bar
-
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
-
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
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
-
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
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.
-
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.
Hi, Actually the data received from the server is not fixed and is dynamic. Can you give me any code of using a CprogresCtrl