如果您的手下写出这样的程序,您会怎么样?

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。注意,我没有漏掉星号,因为确实没有星号……看了这样的代码,我都想 ……

你可能感兴趣的:(程序)