MCPcopy Create free account
hub / github.com/PyQt5/PyQt / _wndproc

Method _wndproc

Demo/ShowFrameWhenDrag.py:65–78  ·  view source on GitHub ↗
(self, hwnd, msg, wparam, lparam)

Source from the content-addressed store, hash-verified

63 int(self.winId()), GWL_WNDPROC, self._newwndproc)
64
65 def _wndproc(self, hwnd, msg, wparam, lparam):
66 if msg == WM_NCLBUTTONDOWN:
67 # 获取系统本身是否已经开启
68 isDragFullWindow = GetDragFullwindows()
69 if isDragFullWindow != 0:
70 # 开启虚线框
71 SetDragFullwindows(0)
72 # 系统本身处理
73 ret = CallWindowProc(
74 self._oldwndproc, hwnd, msg, wparam, lparam)
75 # 关闭虚线框
76 SetDragFullwindows(1)
77 return ret
78 return CallWindowProc(self._oldwndproc, hwnd, msg, wparam, lparam)
79
80
81if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

GetDragFullwindowsFunction · 0.85
SetDragFullwindowsFunction · 0.85

Tested by

no test coverage detected