What is the default/preferred size of the hit-test area for resizing a window?
![](https://techprofile.blob.core.windows.net/images/CFIB-zqfp0esdKGTs5ax_A.png?8DA8BE)
I am trying to replace the standard window frame with a custom window frame using DWM.
It seems I need to handle the WM_NCHITTEST.
What is the default, preferred size of "window resize" hit-test area?
An illustration is shown in this image:
[Red] Left and Right
[Blue] Top and Bottom
[Green] Corners
But I have tested other applications too, it seems most of these windows uses this layout:
Is this true?
What is the preferred size of the hit-test borders and corners:
- top, left, bottom, right
- corners
My guess is 8px each.
I also see other apps uses this layout too:
I have an assumption that image 2 and image 3 is a matter of preference, depends of the application interface layout itself...