// TODO: Return a different brush if the default is not desired
return hbr;
}
二、動(dòng)態(tài)改變控件文本內(nèi)容時(shí)閃爍,可以用以下函數(shù)解決這個(gè)問(wèn)題:
void CXXXDlg::OnBtnStatic()
{
// TODO: Add your control notification handler code here
// IDC_STATIC_ST為靜態(tài)文本控件ID號(hào)
CStatic* pSt = (CStatic*)GetDlgItem( IDC_STATIC_ST);
pSt->SetWindowText("北京2008");
RECT rect;
pSt->GetWindowRect(&rect);
ScreenToClient(&rect);
InvalidateRect( &rect,FALSE );
//Invalidate(FALSE); // 整個(gè)客戶區(qū)無(wú)效
}
聯(lián)系客服