Chinaunix首页 | 论坛 | 博客
  • 博客访问: 14490754
  • 博文数量: 5645
  • 博客积分: 9880
  • 博客等级: 中将
  • 技术积分: 68081
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-28 13:35
文章分类

全部博文(5645)

文章存档

2008年(5645)

我的朋友

分类:

2008-04-28 20:52:12

下载本文示例代码
可以用你的程序在屏幕上的任何地方画图,效果就象电子宠物一样很简单,只要两个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 可以用你的程序在屏幕上的任何地方画图,效果就象电子宠物一样很简单,只要两个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 下载本文示例代码


在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图在屏幕上任何地方画图
阅读(108) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~