本类主要功能是在当前线程(比如说主线程),指派任意一个线程(比如说某个工作线程)去执行一个匿名函数。 注意,这个和QtConcurrent配合QThreadPool不一样,QtConcurrent配合QThreadPool只能指派回调到QThreadPool中的线程。 而这个类可以指派一个回调到任意 Read More
posted @ 2016-03-31 18:10
findumars
Views(1108)
Comments(0)
Diggs(0)
首先看看MS对Visual Styles的解释: Windows XP and later operating systems support a feature called visual styles that enables the appearance of common controls Read More
posted @ 2016-03-31 18:02
findumars
Views(664)
Comments(0)
Diggs(0)
击标题栏右边的关闭按钮“红叉”时,程序会向窗口发送WM_CLOSE消息,因此可以截取此消息在窗口关系前做一些提示或者是不允许点击时关闭程序 [cpp] view plain copy case WM_CLOSE: if (...) { PostQuitMessage(WM_QUIT); return Read More
posted @ 2016-03-31 17:58
findumars
Views(398)
Comments(0)
Diggs(0)
在WM_KEYDOWN中处理F10(VK_F10)消息总是获取不到,后来用spy++监听窗口消息发现按下F10并没有WM_KEYDOWN消息产生,而是产生了WM_SYSKEYDOWN http://blog.csdn.net/x356982611/article/details/46636507 Read More
posted @ 2016-03-31 17:53
findumars
Views(381)
Comments(0)
Diggs(0)
[cpp] view plain copy [cpp] view plain copy #include "stdafx.h" #include "delay.h" void DoEvents() { MSG msg; while (PeekMessage(&msg, (HWND)NULL, 0, Read More
posted @ 2016-03-31 17:52
findumars
Views(1133)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号