Having a way to remove the 6px frame but don't know if you want it #6
Closed
littlewhitecloud
started this conversation in
Ideas
Replies: 2 comments 2 replies
|
It also works with each type of window. def handle(hwnd: int, msg: int, wp: int, lp: int) -> int:
if msg == WM_NCCALCSIZE and wp:
lpncsp = NCCALCSIZE_PARAMS.from_address(lp)
lpncsp.rgrc[0].top -= 6
return windll.user32.CallWindowProcW(*map(c_uint64, (globals()[old], hwnd, msg, wp, lp)))
old, new = "old_wndproc", "new_wndproc"
prototype = WINFUNCTYPE(c_uint64, c_uint64, c_uint64, c_uint64, c_uint64)
globals()[old] = None
globals()[new] = prototype(handle)
globals()[old] = windll.user32.GetWindowLongPtrA(self.hwnd, GWL_WNDPROC)
windll.user32.SetWindowLongPtrA(HWND, GWL_WNDPROC, globals()[new]) |
2 replies
|
Issue Fixed by @littlewhitecloud, the feature would be live in the next release |
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.
Before:


After:
All reactions