How can I display words on the desktop?
a question gleam in my mind.. :lol:
a question gleam in my mind.. :lol:
If you are talking about text inside a window, Iczelion's Tutorial 4 and Tutorial 5 are good examples of how to do this.
I think he want to draw text onto "root window"
IMHO get dc of "root window" and draw text.
IMHO get dc of "root window" and draw text.
If you are talking about text inside a window, Iczelion's Tutorial 4 and Tutorial 5 are good examples of how to do this.
I mean not a text inside a window, just looks like on the desktop, perhaps the text inside a translucent window
So why won't you make a transparent window and write inside it?
People do have a tendency to answer their own questions given enough information... just means you are thinking :)
But I don't know how to create a translucent window... :shock:
Any help would be greatly appreciated.
Any help would be greatly appreciated.
iirc there is/was a tutorual about it on iczelion's site..?
An oversight I intend to correct with our tutorial translation project. Ours only goes up to 20 so far (English) and the original was 32 of them AFAIK.
This is a very simple problem, I am sorry I did not see this thread sooner...
GoAsm syntax. Ofcourse the text is lost when the desktop repaints itself.
invoke FindWindow, "progman", 0
invoke FindWindowEx, eax, 0, "SHELLDLL_DefView", 0
invoke FindWindowEx, eax, 0, "SysListView32", 0
mov , eax
invoke GetDC,eax
mov ,eax
invoke TextOut,,0,0,"This is a test",15
invoke ReleaseDC,,
GoAsm syntax. Ofcourse the text is lost when the desktop repaints itself.
Is there any particular reason you do the FindWindowEx stuff? GetDC with NULL/0 hwnd will return a DC for the entire screen. (Also, consider that alternative shells like litestep, geoshell, blackbox probably won't have "progman" running :)).
Hi f0dder,
Probably not, I did not spend alot of time on it, just thought to get the DC for the actual listview that is displayed. I didn't even think to try any other way as the problem seemed sort of ho-hum to me but I wanted to provide a working answer to the question.
Probably not, I did not spend alot of time on it, just thought to get the DC for the actual listview that is displayed. I didn't even think to try any other way as the problem seemed sort of ho-hum to me but I wanted to provide a working answer to the question.
f0dder,
The method Donkey used is how I would do it.
but it depends on what you want to achive.
using GetDC will write on all windows, which can get messy and not
all the windows in the way will know about the drawing and parts of
what you draw will stay on those windows untill something couse them
to repaint. So I would use the method Donkey used to draw only on
the desktop and not all the windows that may be showing.
Zcoder....
The method Donkey used is how I would do it.
but it depends on what you want to achive.
using GetDC will write on all windows, which can get messy and not
all the windows in the way will know about the drawing and parts of
what you draw will stay on those windows untill something couse them
to repaint. So I would use the method Donkey used to draw only on
the desktop and not all the windows that may be showing.
Zcoder....
Hm yeah, good piece of advice, zcoder. I assume donkey's method would only write to the actual desktop, not the "screen". (ie, only the background, not "all windows"). The problem, of course, being that donkey's method will only work with a standard vanilla windows explorer.exe shel...