Thread: How to Write directly to the Windows 7 desktop

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    27

    How to Write directly to the Windows 7 desktop

    I've looked all over but can't find an example of how this can be done.

    I know it is not recommended, but if someone knows how to directly
    write "Hello World!" directly to the desktop I would be grateful.

    -Thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Do you mean a file called hello world.txt

    Or a whole mess of in your face pixels?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jun 2017
    Posts
    157
    To write sth. on the desktop you need to:
    1. Get the handle for the Desktop
    2. Create a Device context
    3. Draw your text
    4. Release the device context

    Text and Fonts
    Win32 Tutorial - Lesson 9: The Graphical Device Interface

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How can I draw directly on the Desktop?
    By HelpfulPerson in forum Windows Programming
    Replies: 10
    Last Post: 10-30-2013, 02:04 AM
  2. Can you write directly into video memory in windows vista?
    By kypronite in forum Game Programming
    Replies: 3
    Last Post: 08-02-2008, 02:12 PM
  3. Drawing on the Windows Desktop
    By francoissoft in forum Windows Programming
    Replies: 2
    Last Post: 07-22-2007, 09:45 PM
  4. read/write directly from VideoRam?
    By Magica in forum C Programming
    Replies: 5
    Last Post: 03-31-2003, 04:23 PM
  5. Write directly to the screen?
    By SMurf in forum Windows Programming
    Replies: 0
    Last Post: 01-24-2002, 07:40 AM

Tags for this Thread