1. RECT rtWindow;
  2. GetWindowRect(&rtWindow);
  3. //long x = 400;
  4. //long y = 200;
  5. long x = rtWindow.left;
  6. long y = rtWindow.top;
  7. long cxWidth = rtWindow.right-rtWindow.left;
  8. long cyHeight = rtWindow.bottom-rtWindow.top;
  9. const long nOffset  = 9;
  10. const long SLEEP_INTERAL = 60;
  11. for(long i=0; i<=2; ++i)
  12. {
  13. ::MoveWindow(m_hWnd, x+nOffset, y-nOffset, cxWidth, cyHeight, TRUE);
  14. ::Sleep(SLEEP_INTERAL);
  15. ::MoveWindow(m_hWnd, x-nOffset, y-nOffset, cxWidth, cyHeight, TRUE);
  16. ::Sleep(SLEEP_INTERAL);
  17. ::MoveWindow(m_hWnd, x-nOffset, y+nOffset, cxWidth, cyHeight, TRUE);
  18. ::Sleep(SLEEP_INTERAL);
  19. ::MoveWindow(m_hWnd, x+nOffset, y+nOffset ,cxWidth, cyHeight, TRUE);
  20. ::Sleep(SLEEP_INTERAL);
  21. ::MoveWindow(m_hWnd, x, y, cxWidth, cyHeight, TRUE);
  22. ::Sleep(SLEEP_INTERAL);
  23. }

参考:http://www.rupeng.com/forum/thread-6423-1-1.html

http://blog.csdn.net/analogous_love/article/details/47979739

最新文章

  1. kettle系列-4.kettle定制化开发工具类
  2. [python学习] 介绍python的property,以及为什么要用setter,一个小栗子
  3. app性能测试点、安全测试点总结
  4. tomcat监控脚本
  5. vs开发工具之--自动生成注释
  6. c#和UDP SOCKET广播
  7. NET 项目结构搭建
  8. MVVM前后分离轻量级框架应用juicer和doT.js
  9. mysql单表多表查询
  10. 【php增删改查实例】第十节 - 部门管理模块(新增功能)
  11. MyIbatis和Hibernate的区别--2019-04-26
  12. Game Engine Architecture 5
  13. [转载]SpringBoot系列: SpringMVC 参数绑定注解解析
  14. WebHttpRequest在sharepoint文档库中的使用
  15. Flask实例化的参数 及 对app的配置
  16. mysql服务启动、停止、重启
  17. DELPHI各种颜色表达式
  18. Maven 下载安装
  19. MacOS在Finder中建立快速新建txt的workflow
  20. 拯救者14ISK添加ssd6记录

热门文章

  1. js匿名自执行函数
  2. [React Router v4] Conditionally Render a Route with the Switch Component
  3. NSArray NSMutableArray 初始化
  4. python 爬取36kr 7x24h快讯
  5. 为什么java的web开发中URLEncoder.encode方法要为什么要调用两次
  6. dropzone上传文件
  7. windows server 安装 mysql – 畅玩Coding
  8. Vue 兄弟组件之间传递数值
  9. 简单几步教你实现移动硬盘PE、装win7/vista! 一盘在手,系统无忧!
  10. VC++实现Vista和Win7系统低权限程序向高权限程序发消息