Questions tagged [nonclient]
18 questions
38
votes
3 answers
Non client painting on aero glass window
Now Im customizing title bar of my application. My aim is to add one extra button on title bar. Im my previous question people have adviced me the way I can customize non client area. Thats works perfectly except one small thing - glowing! I can…

Anton Semenov
- 6,227
- 5
- 41
- 69
11
votes
0 answers
Scrollbar painting issue with thickened non-client window border
I am trying to draw a coloured border around the client area of a custom control with scrollbars. To this end, I set BorderWidth to a positive integer and respond to the WM_NCPAINT message. This sounds like mixing VCL and Win32, but the BorderWidth…

Andreas Rejbrand
- 105,602
- 8
- 282
- 384
10
votes
1 answer
Handling WM_NCPAINT "breaks" DWM glass rendering on Vista/Aero
I am trying to make a window that alternates between having an Aero/Glass and a custom rendered frame (by handling WM_NCPAINT) based on a user setting. (Windows Vista).
DwmComposition is enabled. My app comes up with the glass frame, but as soon as…
Ben Goodger
9
votes
4 answers
How to draw in the nonclient area?
I'd like to be able to do some drawing to the right of the menu bar, in the nonclient area of a window.
Is this possible, using C++ / MFC?
Nirodho
6
votes
1 answer
Windows: Mouse Down on Window Decoration
In almost any Windows application, I notice that holding the mouse button down in a non-client area causes the painting to stop. Why is this required?
For example, I have a Managed Direct 3D application which displays a spinning cube. If I place the…

Agnel Kurian
- 57,975
- 43
- 146
- 217
6
votes
6 answers
Delphi: Draw a text in a caption form for vista with aero like windows 7
How does one draw text (with onClick event) in a caption bar on vista with aero Like Windows 7 ?
alt text http://img529.imageshack.us/img529/3643/immaginembl.jpg
The example at delphi.about.com doesn't work on Vista with aero. Do you have any…
haidomingo
2
votes
0 answers
How to add padding to a TCustomControl without losing the border "look and feel"?
I've written a custom TMemo, but noticed that the text was smack against the border with no padding at all. Although I could try and fix the issue inside the ClientRect by offsetting it, etc, it wouldn't be a very elegant solution at this stage.…

Jarno
- 103
- 3
- 7
2
votes
1 answer
DWM Composition toggle causes client area to lose alpha
I have a simple Windows application here:
http://www.bengoodger.com/software/chrome/dwm/app.cc
My app provides a customized glass frame for when DWM compositing is active, and a fully custom frame when it is inactive or not available.
The…
user181565
2
votes
1 answer
How to insert a new button in non client area?
im developing a custom form and i need to put a button right next to the minimize button. Anyone know how to do it?

Leonardo
- 10,737
- 10
- 62
- 155
1
vote
1 answer
Change the style (title bar color, border) of winforms, that is , of the non-client area
Is there any simple way to change the color of the title bar of winforms , change the look and feel of the non-client area ?
i have found this link, but it seems to be very typical for a beginner :
Drawing Custom Borders in Windows Forms

sqlchild
- 8,754
- 28
- 105
- 167
1
vote
1 answer
Cursor flashing on the non-client area when using IDirect3DDevice9::SetCursorProperties
I have an application running under Direct3D9. The application is using the Direct3D HW cursor API (IDirect3DDevice9::SetCursorProperties et al.) to control the cursor. Almost everything works fine:
when inside of the application window, the cursor…

Suma
- 33,181
- 16
- 123
- 191
1
vote
1 answer
Should I receive WM_NCPAINT when there is no client area?
There is something I would like to understand in my custom control. I handle WM_NCCALCSIZE to set the client area to the entire window, in other terms there is no nonclient area. I was expecting to not receive WM_NCPAINT but I still receive it each…

Nicolas Cadilhac
- 4,680
- 5
- 41
- 62
1
vote
3 answers
Access to non-current-user sessions data in PHP
Is it possible to access data in other users sessions than the sessions which is active with the currently connecting client ($_SESSION)?
If so, how?

Supernovah
- 1,946
- 12
- 34
- 50
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
1
vote
1 answer
how to Paint non-client area in winForms transparent? .Net 4
im developing a custom form and i want that the non-client area be transparent. im handling the non client area painting via message number "0x85" and this is what i have tried so far:
Paint using the color "Color.Transparent" -> the non-client…

Leonardo
- 10,737
- 10
- 62
- 155