MSDN中的一个示例代码,步骤就是RegisterHotKey注册热键,然后响应WM_HOTKEY消息 @1:这个是系统热键 [cpp] view plain copy #include "stdafx.h" int _cdecl _tmain ( int argc, TCHAR *argv[]) Read More
posted @ 2016-03-31 21:51
findumars
Views(2195)
Comments(0)
Diggs(0)
提示: SetParent 应该 Windows.SetParent, 因为 TForm 的父类有同名方法. http://www.cnblogs.com/del/archive/2008/03/10/1097964.html GetParent - 获取指定窗口的父窗口句柄IsChild - 判断 Read More
posted @ 2016-03-31 21:04
findumars
Views(1114)
Comments(0)
Diggs(0)
所谓双缓冲就是先画到内存画布(如: TBitmap), 然后再转帖到目的地.譬如下面小程序: 改为双缓冲绘图可以是: Read More
posted @ 2016-03-31 20:56
findumars
Views(502)
Comments(0)
Diggs(0)
窗体上放一个TTimer,然后双击输入: 再添加一个新窗体和2个按钮: 执行Button1或者Button2之后,Timer1仍在主窗体上不停的绘制文字,这是为什么? 查看ShowModal的内容: 再看看Application.HandleMessage的源码: 顺便我还查了一下TTimer的源码 Read More
posted @ 2016-03-31 20:45
findumars
Views(633)
Comments(0)
Diggs(0)
The Window's Real Estate Application's Instance A window is referred to as parent when it can be used to host, hold, or carry other windows. For examp Read More
posted @ 2016-03-31 18:24
findumars
Views(323)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号