第8讲--对话框及常用控件.pptVIP

  • 1
  • 0
  • 约2.34万字
  • 约 98页
  • 2019-06-26 发布于湖北
  • 举报
② “暂停”按钮的实现代码: void CAnimateExamDlg::OnStop() { CString strButtonCaption; m_ButtonStop.GetWindowText(strButtonCaption); //取按钮的标题 if(!strButtonCaption.Compare(播放)) //如果是播放的话 { m_ButtonStop.SetWindowText(暂停); //将按钮的标题修改为“暂停”,并播放动画 m_Animate.Play(0,0xffff,0xffff); } else //如果是暂停的话 { m_ButtonStop.SetWindowText(播放); m_Animate.Stop(); } } 习题 一、名词解释 1.模态对话框 2.控件 3.对话框模板 二、简单题 1.模态对话框与非模态对话框有何区别?举例说明。 2. 对话框也是VC程序设计所需要的资源,资源都是以文件的形式存放,最终生成的.exe文件把资源所对应的二进制数据也链接进去。说出对话框资源模在资源

文档评论(0)

1亿VIP精品文档

相关文档