SetForegroundWindowSwitchToThisWindow procedure TApplication.BringToFront;varTopWindow: HWnd;beginif Handle <> 0 thenbeginTopWindow := GetLastActivePo Read More
posted @ 2016-02-26 22:42
findumars
Views(995)
Comments(0)
Diggs(0)
一直对这两个消息的关系不是太了解,借重新深刻学习windows编程的机会研究一番。 1)当窗口从无效变为有效时,比方将部分覆盖的窗口恢复时会重绘窗口时:程序首先会通过发送其他消息调用DefWindowProc,它内部会发送WM_ERASEBKGND消息,然后才会发送WM_PAINT消息,而且不经过消 Read More
posted @ 2016-02-26 22:03
findumars
Views(1748)
Comments(0)
Diggs(0)
WM_PAINTWM_PAINT是Windows窗口系统中一条重要的消息,应用程序通过处理该消息实现在窗口上的绘制工作。WM_NCPAINT当窗口客户区以外的部分(如窗口标题栏、菜单栏等)需要需要重画时,系统向程序发出该消息。因标准窗口的客户区以外部分为窗口必需部分,因而该消息将默认被发送到DefW Read More
posted @ 2016-02-26 22:00
findumars
Views(10664)
Comments(0)
Diggs(0)
1)当WM_PAINT不是由InvalidateRect产生时,即由最大化,最小化等产生时,或者移动产生(移动有时只会产生WM_ERASEBKGND消息)系统先发送WM_ERASEBKGND消息,再发送WM_PAINT消息。 如果处理WM_ERASEBKGND消息时返回FALSE,BeginPain Read More
posted @ 2016-02-26 21:49
findumars
Views(474)
Comments(0)
Diggs(0)
一直以来,对于WM_PAINT和WM_ERASEBKGND消息不是很清楚,从书上和网上找了很多资料,大体上有以下几点说法:1>WM_PAINT先产生,WM_ERASEBKGND后产生 2.WM_PAINT产生后,在调用BeginPaint时hdc = BeginPaint(hWnd, &ps); 如 Read More
posted @ 2016-02-26 21:48
findumars
Views(2456)
Comments(0)
Diggs(0)
混个脸熟: Read More
posted @ 2016-02-26 21:39
findumars
Views(333)
Comments(0)
Diggs(0)
新窗体上放一个Button1和Panel1,仅仅Form1就会收到以下消息: procedure TWinControl.DefaultHandler(var Message); begin if FHandle <> 0 then begin with TMessage(Message) do b Read More
posted @ 2016-02-26 21:03
findumars
Views(596)
Comments(0)
Diggs(0)
这是取得DC句柄的其中一种方法(会重定义原点和建立新的剪裁区): function TControl.GetDeviceContext(var WindowHandle: HWnd): HDC; begin if Parent = nil then raise EInvalidOperation.C Read More
posted @ 2016-02-26 20:40
findumars
Views(551)
Comments(0)
Diggs(0)
1. Microprocessor Design Principales and Practrices with VHDL 特点:电路与VHDL一一对应,比较清楚,而且还用MAX+plus进行仿真 2. VLSI概论 谢水瑞 比较简单和清楚 3. The designer's guide to VH Read More
posted @ 2016-02-26 04:18
findumars
Views(1967)
Comments(0)
Diggs(0)