开发教室
程序设计|Delphi|Java|C++|VB|.NET|Css|Js|PHP|ASP|MySQL|数据库|WEB开发|网页特效|视频
首页 > 开发教室 > 程序设计 > VB > 正文

取得windows的桌面背景

2007-04-10 源自: 网友评论 0 进入视频教程

  Grab the Windows Background

Fancy adding the Windows background to your application? Perhaps you could spruce up your form or add a bit of colour to your shell replacement.

Well, it注释:s all possible via the PaintDesktop API call.

Code

Just declare the following API call in your form:

Private Declare Function PaintDesktop Lib "user32" _
(ByVal hdc As Long) As LongTo set your form background image to the Windows background, simply call the API like this:

PaintDesktop Form1.hdc

上一篇: 去掉窗体的X
下一篇:取得File 8.3之文件名称格式

评论  点击查看
 
开发频道推荐
开发热点文章