Hi guys,
I've been searching on the web for tutorials about writing text into
the windows desktop but I didn't find anything useful. I want to
create something like an On Screen Display; I'm creating a software
package and I'd like to display to the final user some useful
information about the functions which are being activated or
deactivated.
I've only found tutorials to write text into a form and nothing to
realize what I mean
Any help will be really appreciated
|
|
0
|
|
|
|
Reply
|
fredshultz69
|
10/11/2004 10:28:17 AM |
|
"shultz69" <fredshultz69@yahoo.com> schrieb im Newsbeitrag
news:8f13ef73.0410110228.c820e16@posting.google.com...
> Hi guys,
>
> I've been searching on the web for tutorials about writing text into
> the windows desktop but I didn't find anything useful. I want to
> create something like an On Screen Display; I'm creating a software
> package and I'd like to display to the final user some useful
> information about the functions which are being activated or
> deactivated.
>
> I've only found tutorials to write text into a form and nothing to
> realize what I mean
>
> Any help will be really appreciated
OT here. Use comp.os.ms-windows.programmer.win32
Solution:
HDC hdc = ::GetDC(NULL); // Desktop Window DC
::Rectangle(hdc, 0,0,320,240);
ReleaseDC(NULL, hdc);
// Redraw Desktop Window (Remove your Mesage):
::InvalidateRect(NULL, NULL, FALSE);
HTH,
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
|
|
0
|
|
|
|
Reply
|
Gernot
|
10/11/2004 11:51:35 AM
|
|
"Gernot Frisch" <Me@Privacy.net> wrote in message news:<2svablF1o4b93U1@uni-berlin.de>...
> "shultz69" <fredshultz69@yahoo.com> schrieb im Newsbeitrag
> news:8f13ef73.0410110228.c820e16@posting.google.com...
> > Hi guys,
> >
> > I've been searching on the web for tutorials about writing text into
> > the windows desktop but I didn't find anything useful. I want to
> > create something like an On Screen Display; I'm creating a software
> > package and I'd like to display to the final user some useful
> > information about the functions which are being activated or
> > deactivated.
> >
> > I've only found tutorials to write text into a form and nothing to
> > realize what I mean
> >
> > Any help will be really appreciated
>
> OT here. Use comp.os.ms-windows.programmer.win32
>
> Solution:
> HDC hdc = ::GetDC(NULL); // Desktop Window DC
> ::Rectangle(hdc, 0,0,320,240);
> ReleaseDC(NULL, hdc);
>
> // Redraw Desktop Window (Remove your Mesage):
> ::InvalidateRect(NULL, NULL, FALSE);
>
> HTH,
> --
> -Gernot
> int main(int argc, char** argv) {printf
> ("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
>
> ________________________________________
> Looking for a good game? Do it yourself!
> GLBasic - you can do
> www.GLBasic.com
Ok... sorry for my O.T.
I thought I could realize it using OpenGL. I already did it with
windows API but I don't like it so much. Thanks anyway for your help
|
|
0
|
|
|
|
Reply
|
fredshultz69
|
10/12/2004 10:18:02 AM
|
|
> I thought I could realize it using OpenGL. I already did it with
> windows API but I don't like it so much. Thanks anyway for your help
I thins there is a way of doing OpenGL on the desktop, but I don't
know about it.
|
|
0
|
|
|
|
Reply
|
Gernot
|
10/12/2004 11:37:57 AM
|
|
> I thins there is a way of doing OpenGL on the desktop, but I don't know
> about it.
Doesn't that involve using OpenGL to render offscreen and then using
DirectDraw overlays to draw the image whereever the screen has a set color
(to which the desktop should be set)?
Gunix
--
For e-mail, swap the odd and the
even characters behind the @,
but don't count the dot.
|
|
0
|
|
|
|
Reply
|
Gunix
|
10/16/2004 7:38:52 PM
|
|
Gunix wrote:
>>I thins there is a way of doing OpenGL on the desktop, but I don't know
>>about it.
>
>
> Doesn't that involve using OpenGL to render offscreen and then using
> DirectDraw overlays to draw the image whereever the screen has a set color
> (to which the desktop should be set)?
>
You can use GetDC(0) to get the desktop
DC then render to it with OpenGL.
Beware that you can only call SetPixelFormat()
once on a window so if somebody else has set the
desktop pixel format then you have to use the one
they set (use GetPixelFormat() to check it...)
--
<\___/> For email, remove my socks.
/ O O \
\_____/ FTB. The Cheat is not dead!
|
|
0
|
|
|
|
Reply
|
fungus
|
10/16/2004 8:07:15 PM
|
|
|
5 Replies
135 Views
(page loaded in 0.124 seconds)
Similiar Articles: Displaying Unicode, Japanese text - Computer GroupHello, I would like to display japanese text in opengl. Basically I m using the same code ... Chinese Characters in Windows - comp.lang.clipper.visual-objects ... Hi Roger ... adobe reader displays bold text that is not bold. - comp.text.pdf ...I include a PNG graphic and Adobe reader 9 (or Acrobat 8) display text on that page as ... I can observe the same effect with Adobe Reader 9.0 to 9.1.1 on Windows XP. cannot display Chinese font - comp.soft-sys.matlab... comp.soft-sys.matlab Display Chinese Characters with Windows XP ... couple of one-page text-only PDF documents that display just ... characters, and if your computer cannot display ... windows error message: file does not start with %PDF - comp.text ...... by someone using a windows computer ... with %PDF - comp.text ... Hi all, I got informed by someone using a windows computer ... browser to display PDF's ... Windows 2000 ... text in OpenGL - comp.graphics.api.opengl... routine/something what would make me able to draw a text in OpenGL window, but - using standard Windows ... I mean, I want to render my 3d object and display text over tha How to edit PDF (as text) - comp.emacsI want to open a PDF document in emacs 23.2.1 on Windows 7. ... or anything, the PDF is replaced by Cannot display this ... modify: how to cover/hide relevant info? - comp.text ... Print without displaying print dialog (Internet explorer) - comp ...Thumbnail images in Windows Explorer - comp.text.pdf Print without displaying print dialog (Internet explorer) - comp ... ... images in Windows Explorer - comp.text.pdf ... Thumbnail images in Windows Explorer - comp.text.pdfThumbnail images in Windows Explorer - comp.text.pdf CS2-Bridge PICT file ... Thumbnail images in Windows Explorer - comp.text.pdf Print without displaying print ... Change display manager Log window font size?! Follow - Computer GroupGetting MinionPro font to work - comp.text.tex Change display manager Log window font size ... How to change the font size in Windows Vista | Windows 7, Windows ..... and ... unicode display of common characters - comp.emacsIn my emacs I display the text: A\u2019gan Town ... this problem is limited to the Windows ... common characters - comp.emacs | Computer Group In my emacs I display the text ... Klogshow: display text files on your desktop — freewaregenius.comKlogshow is a free program that displays the contents of text files in semitransparent windows on the desktop, and keeps any changes updated in real time. It can have ... Geek to Live: Incorporate text files onto your desktopCheck out a Windows desktop with Samurize configured to display several .txt files on it, as well as a short process list: What's nice about plain text on the desktop is ... 7/29/2012 2:46:47 AM
|