Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window Decorations: Enable/Disable #469

Open
HTGAzureX1212 opened this issue Dec 15, 2021 · 1 comment
Open

Window Decorations: Enable/Disable #469

HTGAzureX1212 opened this issue Dec 15, 2021 · 1 comment

Comments

@HTGAzureX1212
Copy link

HTGAzureX1212 commented Dec 15, 2021

Context

I am currently trying to create a window with no decorations (and specifically without the title bar as well).

Problem description & Solution

Prior art: issue #337 describes how the .borderless() method could be used to disable borders of a window (which does not include the title bar on Windows). As a result, the title bar is not removed and does not satisfy my current needs.

A proposed API to implement this is probably a .window_decorations() method on the Window structure which takes in an IntoPropertySource<bool> or something or maybe some bikeshedding on the method name...?.

Or, maybe extend the .borderless() function to take into consideration for removing the title bar as well for Windows.

@Cy6er7um
Copy link

In traditional WinForm programs, the C++ code can be used to hide the title bar.

SetWindowLong(hWnd, GWL_STYLE, GetWindowLong(hWnd, GWL_STYLE) & ~WS_CAPTION);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants