让C++控制台程序停下来,实现暂停功能 一、针对Microsoft #include <stdlib.h> (1)第一种方式system( "PAUSE "); (2)第二种方式getchar(); // 这招对QT程序也有用 (3)第三种方式Sleep(); 二、针对Linux(1)第一种方式 g Read More
posted @ 2014-08-12 19:13 findumars Views(47555) Comments(0) Diggs(2)
理解SetCapture、ReleaseCapture、GetCapture 理解SetCapture、ReleaseCapture、GetCapture 正常情况下,鼠标指针位于哪个窗口区域内,鼠标消息就自动发给哪个窗口。如果调用了SetCapture,之后无论鼠标的位置在哪,鼠标消息都发给指定的 Read More
posted @ 2014-08-12 16:36 findumars Views(11085) Comments(0) Diggs(1)
http://ymg97526.blog.163.com/blog/static/173658160201139101120862/http://ymg97526.blog.163.com/blog/static/173658160201131021911946/http://ymg97526.bl... Read More
posted @ 2014-08-11 18:30 findumars Views(466) Comments(0) Diggs(0)
http://social.msdn.microsoft.com/Forums/vstudio/en-US/c0f9bac9-d211-4b8b-ba99-f5a0ed0d2e0a/what-is-wm-id-code-0x0118?forum=vclanguage 编辑框出现输入光标时,产生的消息 Read More
posted @ 2014-08-11 18:00 findumars Views(1451) Comments(0) Diggs(0)
最近学QT,对信号槽机制感到有点新鲜:QObject::connect(slider, SIGNAL(valueChanged(int)), lcd, SLOT(display(int)));自己总结其原理,就是一句话:把两个对象的函数相关(往往是设置同一个值),而不用考虑两个对象之间的关系,而且可... Read More
posted @ 2014-08-11 17:18 findumars Views(3556) Comments(0) Diggs(0)