Click here to Skip to main content
15,915,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hide Dialog Pin
Jon Hulatt20-Jan-02 21:51
Jon Hulatt20-Jan-02 21:51 
GeneralRe: Hide Dialog Pin
Anna-Jayne Metcalfe20-Jan-02 22:01
Anna-Jayne Metcalfe20-Jan-02 22:01 
GeneralRe: Hide Dialog Pin
Mazdak20-Jan-02 22:23
Mazdak20-Jan-02 22:23 
GeneralRe: Hide Dialog Pin
Joaquín M López Muñoz20-Jan-02 23:55
Joaquín M López Muñoz20-Jan-02 23:55 
General[Message Deleted] Pin
VladTheImpaler20-Jan-02 18:18
VladTheImpaler20-Jan-02 18:18 
GeneralRe: File Compiling Order in VC++ Pin
Jon Hulatt20-Jan-02 21:52
Jon Hulatt20-Jan-02 21:52 
GeneralRe: File Compiling Order in VC++ Pin
Aaron K.B. Huang20-Jan-02 21:58
Aaron K.B. Huang20-Jan-02 21:58 
GeneralCProgressCtrl Pin
RobJones20-Jan-02 18:13
RobJones20-Jan-02 18:13 
Hello,
I have a MDI app. and in the status bar I have a progress control.. The problem I am having is when ever a long function is taking place my app freezes until the function is finished (because of the progress control). If I remove the progress control everything is fast and smooth.. How can I create a progress control in the status bar with out killing my application performance? Here is a sample of the code I use to create the progress control.

void CMainFrame::DownloadProgress(long nProgress, long nProgressMax)
{
	RECT MyRect;
	m_wndStatusBar.GetItemRect(1, &MyRect);  

	if (m_bCreate == FALSE)
	{
		//Create the progress control
		m_Progress.Create(PBS_SMOOTH | WS_VISIBLE | WS_CHILD 
			, MyRect, &m_wndStatusBar , 1);
		
		m_Progress.SetRange(nProgress,nProgressMax); //Set the range
 		m_Progress.SetStep(1); // Set the step amount
		m_bCreate = TRUE;
	}

	for (int i = nProgress; i < nProgressMax; i++)
	{
			m_Progress.StepIt(); 
	}

}


Any pointers?

Thanks,
Rob
GeneralRe: CProgressCtrl Pin
Michael Dunn20-Jan-02 19:00
sitebuilderMichael Dunn20-Jan-02 19:00 
GeneralRe: CProgressCtrl Pin
RobJones20-Jan-02 19:23
RobJones20-Jan-02 19:23 
GeneralArithmetic Expression Pin
Geoffrey20-Jan-02 17:36
Geoffrey20-Jan-02 17:36 
GeneralRe: Arithmetic Expression Pin
Jon Sagara20-Jan-02 18:03
Jon Sagara20-Jan-02 18:03 
GeneralRe: Arithmetic Expression Pin
Jon Hulatt20-Jan-02 21:58
Jon Hulatt20-Jan-02 21:58 
GeneralRe: Arithmetic Expression Pin
Christian Graus20-Jan-02 22:08
protectorChristian Graus20-Jan-02 22:08 
GeneralRe: Arithmetic Expression Pin
Jon Hulatt21-Jan-02 1:54
Jon Hulatt21-Jan-02 1:54 
GeneralRe: Arithmetic Expression Pin
Christian Graus21-Jan-02 5:45
protectorChristian Graus21-Jan-02 5:45 
GeneralArithmetic Pin
Geoffrey20-Jan-02 17:36
Geoffrey20-Jan-02 17:36 
GeneralRe: Arithmetic Pin
Christian Graus20-Jan-02 17:47
protectorChristian Graus20-Jan-02 17:47 
QuestionBest wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:35
Jay Beckert20-Jan-02 16:35 
AnswerRe: Best wat to download a file with http? Pin
Michael Dunn20-Jan-02 16:55
sitebuilderMichael Dunn20-Jan-02 16:55 
GeneralRe: Best wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:59
Jay Beckert20-Jan-02 16:59 
GeneralCopyMemory problems Pin
alex.barylski20-Jan-02 12:59
alex.barylski20-Jan-02 12:59 
GeneralRe: CopyMemory problems Pin
alex.barylski20-Jan-02 13:28
alex.barylski20-Jan-02 13:28 
Generalput images on GDI Pin
DiegoValdevino20-Jan-02 12:54
DiegoValdevino20-Jan-02 12:54 
GeneralRe: put images on GDI Pin
Christian Graus20-Jan-02 13:03
protectorChristian Graus20-Jan-02 13:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.