def window__client_rectangle(hwnd):
"""
The client-usable space within the border rectangle. Top and Left
are always 0.
:param hwnd:
:return: the rectangle structure.
"""
client_rect = wintypes.RECT()
res = windll.user32.GetClientRect(hwnd, byref(client_rect))
if res == 0:
raise WinError()
return _rect_to_dict(client_rect)
评论列表
文章目录