The client area doesn't sizing properly

GloryStar 1 Reputation point
2022-05-29T07:21:59.213+00:00

I am experienceless on Windows Desktop programming. I would like to draw the frame window by myself. I searched on the internet and found the Bee Lee's article.

https://beeleeong.wordpress.com/2017/04/23/want-a-better-window-frame/#more-889

Demo :
https://github.com/beelee93/ExtendingWindows

I used the method that descripted in this article , But I encounter a issue about the client area. When I resize the frame window ,the client area size doesn't be changed.

Below is the screenshot of a demo, I just added a status bar in the demo app. The size of status bar will not be changed when window size changed.
https://ibb.co/VY05WPG

Any help would be greatly appreciated!

Developer technologies | Windows Forms
Windows development | Windows App SDK
Windows development | Windows API - Win32
Developer technologies | .NET | .NET CLI
Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2022-05-29T07:32:40.857+00:00

    Ths is the old method
    It is done now with DWM (DwmExtendFrameIntoClientArea and so on) : Custom Window Frame Using DWM

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.