Questions tagged [nonclient-area]

Non-client area of a window is where the window decorations are rendered such as the caption and the frame.

Non-client area is the feature of decorated windows that have a caption and a frame. Typically this area is rendered by the window manager so all decorated windows have the same standard system look. Overriding this behaviour allows making a totally custom visual style, but the implementation depends on the platform.

27 questions
1
vote
0 answers

Non-client area form modification issues

I seem to be having a few issues with the form on my project after I decided to extend the non client area by use of this code: Public Structure Side Public…
1
vote
0 answers

Include Titlebar in Client Area

I'm looking for some advice...what I'm trying to do is extend the form's client area to include the title bar and window border. I want to be able to add a button and paint on the non-client area. I've read this article, but it's in C++, and I'm…
Blue0500
  • 715
  • 8
  • 16
1
vote
1 answer

Capture a Form to a Bitmap after the Form has been resized

Working in C# I have a project with the requirement to capture a Control or Form to a bitmap. I have a class which takes a Control parameter in the constructor and then executes the following code (simplified for this example) to save a bitmap of…
1
vote
1 answer

How to keep control box responsive when draw at the non client area

I'm using the following code to draw an image that extends at the non client area of my window. The code works, but the control box (the minimize, maximize and close buttons) stays unresponsive, nothing happens when it's clicked. How to draw at the…
Antonio Dias
  • 2,751
  • 20
  • 40
1
vote
1 answer

WM_NCHITTEST not changing mouse cursor

I have a Layered Window (WS_EX_LAYERED) that implements a custom NCHITTEST and NCCALCSIZE to make the client rect of my window the same as the window rect. My window sizes and paints correctly; I can return HTBOTTOM from WM_NCHITTEST when the…
Armentage
  • 12,065
  • 8
  • 33
  • 33
0
votes
1 answer

How can I remove an arbitrary HWND border (WinAPI)?

Long story short, I'm building an i3-style tiling window manager, and need to override the chrome of arbitrary windows to compeltely remove borders, the titlebar, and associated buttons. Having tried just about every logical combination of WS_STYLE…
0
votes
1 answer

Add Button to Non Client Area in WPF

A follow up to my Previous Question on adding a button to the Window Chrome (also known as the Non Client Area) in Windows Forms, I have decided to switch to WPF to have a better chance of solving my issue. I need to add some buttons to the Non…
0
votes
2 answers

Determine Form Size from another Form

VB2012: In order to do some calculations in my main form I need to know the form size of a secondary form. The form size may change from user to user depending on OS and theme. I understand that the client size stays the same. However I think I am…
sinDizzy
  • 1,300
  • 7
  • 28
  • 60
0
votes
0 answers

How to keep aero glass when handling WM_NCPAINT WinEvent

I’m handling the WM_NCPAINT WinEvent for draw a pushbutton at the non client area of my window. But as you can see at the following image, the aero glass border has disappeared, and my window has no border. So I've found this answer: Handling…
Antonio Dias
  • 2,751
  • 20
  • 40
0
votes
1 answer

How to get the NonClient Upper border size?

I need to allign a secondary form to the right border of other form. When we compile and run a COMPILED application (not when running it from the IDE) with AERO enabled, this is what happens: So thanks to the great asnwer of GJKH here : How to…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
-1
votes
2 answers

Best way to customize winforms frame?

I would like to draw some simple rectangles and text over the window frame so it looks like Visual Studio. Can it be done or should i make a borderless window and handle moving andresizing myself? EDIT: I wrote this. But how do I draw now? protected…
Matic Babnik
  • 43
  • 2
  • 8
-1
votes
1 answer

Changing the windows style?

How can I make my app look like the chrome window? With no title text and really slim border. Or like spotify with no border (or padding sortof).
Jason94
  • 13,320
  • 37
  • 106
  • 184
1
2