Invalidate()函数的应用,

来源:互联网 发布:笔记本怎么查看mac地址 编辑:程序博客网 时间:2024/05/01 10:22

//0
void CTLOADFormView::OnCheckTopoilT()
{
 // TODO: Add your control notification handler code here
 m_nDraw[0] = !m_nDraw[0];
 GetDlgItem(IDC_STATIC_TLOAD)->Invalidate();
 UpdateWindow();
 
}
//1
void CTLOADFormView::OnCheckOltcT()
{
 // TODO: Add your control notification handler code here
 m_nDraw[1] = !m_nDraw[1];
 GetDlgItem(IDC_STATIC_TLOAD)->GetParent()->Invalidate();
 UpdateWindow();
}

原创粉丝点击