Win32 remove Titlebar but keep Decorations (Border, Shadow, Rounded Corners)

Flurin Brühwiler 1 Reputation point
2023-01-21T15:42:20.18+00:00

I'm trying to create a Windows Application via the Windows Api (Win32). I want to remove the Windows Titlebar, but keep other Decorations (Border, Shadow, Rounded Corners). I have tried quite a few combinations of window styles, but cant get it to work.

[https://learn.microsoft.com/en-us/windows/win32/winmsg/window-styles

[https://learn.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles

I also tried DwmExtendFrameIntoClientArea, but it made no difference.

This should be possible, because I can do it with a framework like Tauri ([https://tauri.app/). (by disabling decorations and using the window-border plugin). And Tauri is also just calling the Win32 Api in the background.

Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.