Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Am i losing Focus?

Status
Not open for further replies.

ncwizad

Programmer
Aug 25, 2005
10
GB
Hi,
I'm writing a Dialog aplication that includes a progress bar control and a simple edit box that i use as a status bar. during various parts of the prog i'll write to these items within a loop similar to as shown,
Code:
		m_ProgressControl1.SetPos(Percent(LineNum+1,NoOfRecords));


		m_StatusBarText.Empty();
		m_StatusBarText.Format("Line no %i........",LineNum);
		m_Status.ReplaceSel(m_StatusBarText);
		UpdateData(FALSE);
i have a problem where intermitantly both controls just stop, while the program continues and carries on normally.
I suspect i'm losing 'focus'? but,
1) I dont know what that means, and
2) I havent a clue on why or how to fix it.
If anyone has any pointers or ideas, your comments would be greatly appreciated.
Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top