16,551
社区成员
发帖
与我相关
我的任务
分享
void CMainFrame::OnSize(UINT nType, int cx, int cy)
{
CFrameWnd::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
if(::IsWindow(m_wndStatusBar.m_hWnd))
{
CRect rect;
m_wndStatusBar.GetItemRect(m_wndStatusBar.CommandToIndex(ID_INDICATOR_PROGRESS),&rect);
if(::IsWindow(m_progress.m_hWnd))
m_progress.SetWindowPos(&wndTop,rect.left,rect.top,rect.right-rect.left,rect.bottom - rect.top, SWP_SHOWWINDOW);
}
}