void CManageImageView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: 在此处添加消息处理程序代码
// 不为绘图消息调用
// CFormView::OnPaint();
if (pNoFristPaint)
{
CShowSelectImage(pImageCurrent);
}
else
{
this->GetParentFrame()->GetParentFrame()->SetWindowText(_T("营造令-桌面版"));
this->GetParentFrame()->SetWindowText(_T("工程图片档"));
}
}
解释一下,pNoFristPaint是BOOL(请不要评论Frist是什么东西),pImageCurrent是CString。注意,我没有漏掉星号,因为确实没有星号……看了这样的代码,我都想
……
如果您的手下写出这样的程序,您会怎么样?
最新推荐文章于 2022-06-21 22:16:05 发布