This commit is contained in:
恍兮惚兮 2024-12-22 14:57:56 +08:00
parent 3a05f09ba2
commit a007eb0d68
2 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class TextBrowser(QWidget, dataget):
# 而且SetCapture后会立即被父窗口把capture夺走无法后面的释放&移动,所以只能开个线程来弄
if not self.selectable:
self.trackingthread()
return windows.WNDPROCTYPE(orig)(hwnd, msg, wp, lp)
return windows.WNDPROCTYPE_1(orig)(hwnd, msg, wp, lp)
@tryprint
def showEvent(self, e):

View File

@ -861,6 +861,7 @@ IsZoomed.argtypes = (HWND,)
IsZoomed.restype = BOOL
WNDPROCTYPE = WINFUNCTYPE(INT, HWND, INT, WPARAM, LPARAM)
WNDPROCTYPE_1 = CFUNCTYPE(INT, HWND, INT, WPARAM, LPARAM)
GWLP_WNDPROC = -4
if sizeof(c_void_p) == 8: