| | | 在屏幕上任何地方画图 | | 2000-08-02·
·-··逸仙时空
| 可以用你的程序在屏幕上的任何地方画图,效果就象电子宠物一样很简单,只要两个API
The first one is getdesktopwindow and the other is getwindowdc
the detail you can see the Win32 help which was plused in Delphi4
For example: you paste a bitmap on the screen
var wnd:longint;
mydc,bitmapdc:Hdc;
mybitmap:Tbitmap;
mybitmap:=Tbitmap.create();
mybitmap.loadfromfile(c:\windows\waves.bmp);
bitmapdc:=getwindowdc(mybitmap.handle);
wnd:=getdesktopwindow();
mydc:=getwindowdc(wnd);
bitblt(my....... //I forget the detail if you have any questions can
// send email to me at bbs
| | | 感谢
访问天极网,如果您觉得该文章涉及版权问题,请看这里!
|
|