Replies: 1 comment
-
|
Set https://fltk.easysw.narkive.com/Uyr8GbJE/how-to-remove-close-max-min-icon-from-a-window https://stackoverflow.com/a/7301913 unsafe {
let mut style = GetWindowLongPtrW(hwnd, GWL_STYLE) as u32;
style &= !WS_SYSMENU.0;
SetWindowLongPtrW(hwnd, GWL_STYLE, style as isize);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I customed titlebar, but there are 7px between CLOSE btn and frame.
My pc is windows 11 and windows 10 both.
I test some condition but cannot.
This is what enable

with_enabled_buttons(WindowButtons::CLOSE).This is what normal.

This project information.
git = https://github.com/oligamiq/fast-explorer/tree/update_winit
branch = update_winit
SubclassPropcatch msg before winit and followhttps://learn.microsoft.com/en-us/windows/win32/dwm/customframe
※SubclassProp https://docs.microsoft.com/en-us/windows/win32/controls/subclassing-overview#subclassing-controls-using-comctl32dll-version-6
Change frame size by
DwmExtendFrameIntoClientArea.Top is 40. Bottom is 10.
Blue color is Windows accent color.
If DwmDefWindowProc's hit_test failed, my hit_test use.
※hit_test Operate close, maximize, etc.
Ref #2384
I want to adjust to frame CLOSE btn.
I am also considering not use DwmDefWindowProc and rm close btn and upgrade my hit_test, but, I don't know rm close btn.
Beta Was this translation helpful? Give feedback.
All reactions