- 
    
Suggestion
 - 
    Resolution: Done
 - 
    
P3: Somewhat important
 - 
    4.4.0
 - 
    None
 
- 
        c9e1cf516fdce567e54b5d5f4ea9d44164b3e28c (qtbase/dev, 20.,11.2016, 5.9)
 
When drawing one's own window frame, using WM_NCCALCSIZE, WM_NCPAINT, WM_NCACTIVATE, WM_NCHITTEST, WM_NCMOUSEMOVE, WM_NCLBUTTONDOWN, WM_NCLBUTTONUP etc. the dimensions of that frame differs from windows standard (AdjustWindowRectEx).
To avoid problems like:
- shrinking windows
 - layouts that cut things that normally seen, especially when at right or bottom
 - miscalculations of window positions, like popup menu isn't straight under the main menu
 - mouse cursor is always a few pixel above the things painted
 
it would be nice if Qt could use WM_NCCALCSIZE instead of AdjustWindowRectEx in QWidgetPrivate::updateFrameStrut()
- is duplicated by
 - 
                    
QTBUG-56591 QWidget::frameGeometry() does not match WM_NCCALCSIZE
-         
     - Closed
 
 -         
 - 
                    
QTBUG-40578 Windows: Painting/resizing issues with windows made frameless by handling WM_NCCALCSIZE
-         
 - Closed
 
 -