SUMTEC -- There's a thing in my bloglet.

But it's not only one. It's many. It's the same as other things but it exactly likes nothing else...

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
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。注意,我没有漏掉星号,因为确实没有星号……看了这样的代码,我都想……
posted on 2004-04-29 12:38  Sumtec  阅读(1456)  评论(8)    收藏  举报