Painting on the entire display...

This is a discussion on Painting on the entire display... within the Windows Programming forums, part of the Platform Specific Boards category; Hi all-- The basic quesiton I have is that I want to paint in fullscreen mode using GDI+. I can ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    6

    Painting on the entire display...

    Hi all--

    The basic quesiton I have is that I want to paint in fullscreen mode using GDI+.

    I can obtain a handle to the entire display using:

    Code:
    HDC hdc = CreateDC(L"DISPLAY",NULL,NULL,NULL);
    I can even paint on it by getting a graphics object
    Code:
    Graphics* g = new Graphics(hdc);
    and using g->DrawString(...) etc.

    If i use the graphics clear() function I can wipe the whole screen to a solid color...but here's the problem:
    each time I move the mouse over an area not in my client area, it repaints Windows/Other Programs/ the start menu/ etc underneath.

    How can I trap the WM_PAINT message that's going beyond my window alone? Is there such a way?
    or alternatively is there a way to make my client area equal to the entire screen?

    Thanks for the help!

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. display character size...(quite urgent..)
    By karthi in forum C Programming
    Replies: 10
    Last Post: 07-11-2007, 10:42 PM
  2. new problem with class
    By jrb47 in forum C++ Programming
    Replies: 0
    Last Post: 12-01-2006, 08:39 AM
  3. My text doesn't display
    By joeprogrammer in forum Game Programming
    Replies: 11
    Last Post: 02-23-2006, 10:01 PM
  4. Help needed Please
    By jereland in forum C Programming
    Replies: 9
    Last Post: 03-18-2004, 05:30 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21