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!

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,836 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
728 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,427 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,288 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,826 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.