Removing the non-client area

This is a discussion on Removing the non-client area within the Windows Programming forums, part of the Platform Specific Boards category; MSDN says that the system controls the non-client area of a window, but I was hoping there was some way ...

  1. #1
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    Removing the non-client area

    MSDN says that the system controls the non-client area of a window, but I was hoping there was some way to remove it. I want to be able to fully paint my window, from one side to the other. Is this possible?
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    You can intercept and process the WM_NCxxxx messages. Start with WM_NCPAINT.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    If I did that I still wouldn't be able to put a child window anywhere in the window. I'm thinking about something with just a simple one pixel wide border and all client area, like in the attachment.

    Something like a permament tool-tip window, just a little bigger! Those must be windows.
    Attached Images Attached Images  
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  4. #4
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Hmmm. All you have to do is specify the WS_POPUP style. Although I could swear I had tried every single window style there is. I guess we're finished here.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MFC: Clear Client Area
    By mrafcho001 in forum Windows Programming
    Replies: 2
    Last Post: 06-27-2005, 01:35 PM
  2. Displaying more shapes in the same client Area
    By sajeev_js in forum Windows Programming
    Replies: 1
    Last Post: 06-11-2005, 01:52 PM
  3. Help resizing client area
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 07-07-2002, 08:33 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Clearing the client area
    By Isometric in forum Windows Programming
    Replies: 15
    Last Post: 01-29-2002, 09:07 PM

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