Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Dark Star

GDI drawing without showing a window

This topic is 5222 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I got this application that runs in the system tray. Every so often it draws a message on the screen using GDI. To do this it must show its window and draw the text onto screen then hide its window. (The program is designed to show subliminal messages, and keep them on for 15 milliseconds). I was wondering if there is a way I can draw straight onto the users screen without having to show the application''s window? Because showing the application''s window, interferes with other processes, such as a game running in full screen. Another subliminal program which Im copying does not show any window, it appears to write its messages on the screen, while having only an icon in the system tray. Could anyone please help Thanks DarkStar UK ------------------------------- Loves cross-posting because it works

Share this post


Link to post
Share on other sites
Advertisement
I need to know specifically if I can draw onto the screen without a window being shown? Anyone else with a suggestion?

Thanks

DarkStar
UK

-------------------------------
Loves cross-posting because it works

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_4esj.asp

quote:

[in] Handle to the window whose DC is to be retrieved. If this value is NULL, GetDC retrieves the DC for the entire screen.



''nuff said.

Share this post


Link to post
Share on other sites
I''ve tried that getting the hdc using NULL, still dont see anything displayed on my screen

DarkStar
UK

-------------------------------
Loves cross-posting because it works

Share this post


Link to post
Share on other sites
quote:
Original post by remi
quote:
Original post by LessBread
Maybe this will help point the way: Overlay surfaces.

It seems to be using DirectX not GDI!




Yes, that''s true, but the frame work is there and we laid the ground work for that demo here in these forums using GDI.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!