MFC 窗口抖动代码
文章转自王牌软件
站长推荐:NSetup一键部署软件
一键式完成美化安装包制作,自动增量升级,数据统计,数字签名。应对各种复杂场景,脚本模块化拆分,常规复杂的脚本代码,图形化设置。无需专业的研发经验,轻松完成项目部署。(www.nsetup.cn)
只回答业务咨询
站长推荐:NSetup一键部署软件
一键式完成美化安装包制作,自动增量升级,数据统计,数字签名。应对各种复杂场景,脚本模块化拆分,常规复杂的脚本代码,图形化设置。无需专业的研发经验,轻松完成项目部署。(www.nsetup.cn)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
int ty=5; CRect m_rect; GetWindowRect(&m_rect); int recordy=m_rect.left; int recordx=m_rect.top; for(int i=0;i<3;i++) { m_rect.left=recordy; m_rect.top=recordx; m_rect.top = m_rect.top + ty; m_rect.left = m_rect.left - ty; SetWindowPos( NULL,m_rect.left,m_rect.top,0,0,SWP_NOSIZE );Sleep(35); m_rect.top = m_rect.top -ty; SetWindowPos( NULL,m_rect.left,m_rect.top,0,0,SWP_NOSIZE );Sleep(35); m_rect.top = m_rect.top -2*ty; SetWindowPos( NULL,m_rect.left,m_rect.top,0,0,SWP_NOSIZE );Sleep(35); m_rect.left=m_rect.left+ty; SetWindowPos( NULL,m_rect.left,m_rect.top,0,0,SWP_NOSIZE );Sleep(35); m_rect.left=m_rect.left+2*ty; SetWindowPos( NULL,m_rect.left,m_rect.top,0,0,SWP_NOSIZE );Sleep(35); m_rect.top = m_rect.top + ty; SetWindowPos( NULL,m_rect.left,m_rect.top,0,0,SWP_NOSIZE );Sleep(35); m_rect.top=m_rect.top+2*ty; SetWindowPos( NULL,m_rect.left,m_rect.top,0,0,SWP_NOSIZE ); SetWindowPos( NULL,recordy,recordx,0,0,SWP_NOSIZE ); Sleep(35); } |
学习日记,兼职软件设计,软件修改,毕业设计。
本文出自 学习日记,转载时请注明出处及相应链接。
本文永久链接: https://www.softwareace.cn/?p=248