VBGood网站全文搜索 Google

搜索VBGood全站网页(全文搜索)
首页 - 经验之谈 - 取得windows的桌面背景
发表评论(0)作者:Karl Moore, 平台:VB6.0+Win98, 阅读:9671, 日期:2001-04-16
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