Skip to content

Commit

Permalink
Improve & bump version (#51)
Browse files Browse the repository at this point in the history
* improve and bump version

* bump version

* Update titlebar.py

* more
  • Loading branch information
littlewhitecloud authored Aug 30, 2024
1 parent 6293bfe commit 687a224
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 128 deletions.
2 changes: 1 addition & 1 deletion customtitlebar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

from .titlebar import CTT

del platform
del platform
18 changes: 3 additions & 15 deletions customtitlebar/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ctypes import POINTER, Structure, c_int
from ctypes.wintypes import HWND, RECT, UINT
from ctypes import Structure
from ctypes.wintypes import POINT, RECT

WM_NCCALCSIZE = 0x0083

Expand All @@ -13,17 +13,5 @@
GWL_WNDPROC = -4


class PWINDOWPOS(Structure):
_fields_ = [
("hWnd", HWND),
("hwndInsertAfter", HWND),
("x", c_int),
("y", c_int),
("cx", c_int),
("cy", c_int),
("flags", UINT),
]


class NCCALCSIZE_PARAMS(Structure):
_fields_ = [("rgrc", RECT * 3), ("lppos", POINTER(PWINDOWPOS))]
_fields_ = [("rgrc", RECT * 3), ("lppos", POINT)]
Loading

0 comments on commit 687a224

Please sign in to comment.