This is not a part of owner draw. This is non-client area which should be handled by non-client drawing, via handling non-client messages and message parameters:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162743%28v=vs.85%29.aspx[
^].
Another approach could be a work-around which is sometimes used, but in more exotic window designs. You can create window in a style using no non-client areas at all: no borders, no title bar. In this case, you can simulate non-client elements in your client area, which is in this case the whole window area.
[EDIT]
Answering follow-up questions, from the comment to this answer:
- Non-client drawing would be made of two parts: rendered by OS and something you draw in your application the way explained in the article referenced above. I don't think you can mode anything drawn by OS, you can only draw on top of it. Of course, you can also disable some elements.
- As I said, you can achieve a window without non-client areas by its styles. It can be like
SetWindowLong(hWnd, GWL_STYLE, some_styles);
Please see:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633591%28v=vs.85%29.aspx[^],
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632600%28v=vs.85%29.aspx[^],
http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543%28v=vs.85%29.aspx[^].
I believe that none of the style bits will already make such window:
SetWindowLong(hWnd, GWL_STYLE, 0);
—SA