Author Topic: [BUG] Different client areas  (Read 786 times)


  • Administrator
  • Hero Member
  • *****
  • Posts: 1525
[BUG] Different client areas
« on: February 11, 2018, 04:58:23 pm »
Not sure if it's a bug or a feature. It's not critical, but may be interesting to know anyway.

Looks like Windows developers have different opinions on "client area". this description of nonclient area says
nonclient area of the window, such as the title bar, menu bar, or window frame
And for example this PrintWindow function operates in agreement with the description above. With PW_CLIENTONLY flag it indeed doesn't include menu bar in the screenshot.
And GetClientRect function also agrees with the description, it doesn't include menu bar in the RECT.
But looks like DWM thumbnails were developed by a different team of people who have their own opinion on nonclient area. So using fSourceClientAreaOnly flag includes menu bar in the thumbnail treating it as a client area.