如何在桌面上绘制文字? [英] How to draw text on desktop?

查看:172
本文介绍了如何在桌面上绘制文字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在桌面上直接绘制一个滚动文字。我可以使用DC:= GetDC(0)在所有窗口顶部绘制文本。但我不想这样。绘图必须在桌面上,而不是在所有打开的窗口上。我的文本需要在桌面上的图标之下!

I need to draw a scrolling text directly on desktop. I can draw text on top of all windows using DC := GetDC(0). But I don't want that. The drawing has to be on desktop only, and not on top off all open windows. My text needs to be below the icons on the desktop!

我如何在Delphi中执行此操作?我猜Windows 7具有新的API功能,可以轻松访问桌面窗口,因为它可以褪色壁纸。

How ca I do this in Delphi? I guess Windows 7 has new API functions to allow easier access to desktop window this since it can fade the wallpaper.

推荐答案


我想在桌面上绘画,所以当我的应用程序没有运行。

I want to paint on desktop so my text stays there also when my application is not running.

如果您的应用没有运行,文本也应该在那里,那么你唯一的选择就是改变壁纸:找出什么桌面壁纸的图像是将您的文字添加到该图像,并将其保存为新壁纸,然后使用该壁纸。

If the text should also be there if your app is not running then your only option is to change the wallpaper: find out what the image of the desktop wallpaper is, add your text to that image and save it as a new wallpaper and use that one.

这篇关于如何在桌面上绘制文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆