您现在的位置是: 软件 > 开发者网络 > 正文
·速成电脑精英(包分配)白领高薪一族从这里开始



-Java套接字编程(下)
-MediaStudio Pro 6.5教程
-三款卸载软件最新试用
-基于Visual C++的Winsock API研究

在屏幕上任何地方画图
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
■ 相关内容
感谢 访问天极网,如果您觉得该文章涉及版权问题,请看这里!