让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(47510) Comments(0) Diggs(2)
理解SetCapture、ReleaseCapture、GetCapture 理解SetCapture、ReleaseCapture、GetCapture 正常情况下,鼠标指针位于哪个窗口区域内,鼠标消息就自动发给哪个窗口。如果调用了SetCapture,之后无论鼠标的位置在哪,鼠标消息都发给指定的 Read More
posted @ 2014-08-12 16:36 findumars Views(11055) Comments(0) Diggs(1)