处理数据需要一些时间,这个时候我希望用进度条的方式在状态栏中提示用户正在处理。在框架类中我是这样添加的,可以实现进度条功能。但是不知道怎么结束,就是说,我数据处理完后,我怎么删除掉我的进度条?我是在view类中处理数据的,数据处理完后需要在view类删除进度条,有没有人知道?
void CMainFrame::OnPaint() 
{
CPaintDC dc(this); // device context for painting

// TODO: Add your message handler code here
CRect rect;
m_wndStatusBar.GetItemRect(2,&rect);
if(!m_progress.m_hWnd)
m_progress.Create(WS_CHILD | WS_VISIBLE ,//| PBS_SMOOTH,
rect,&m_wndStatusBar,123);
else
m_progress.MoveWindow(rect);}