コード例 #1
0
ファイル: __init__.py プロジェクト: momja/Code-Club
 def get_location(self):
     rect = RECT()
     _user32.GetClientRect(self._hwnd, byref(rect))
     point = POINT()
     point.x = rect.left
     point.y = rect.top
     _user32.ClientToScreen(self._hwnd, byref(point))
     return point.x, point.y
コード例 #2
0
ファイル: __init__.py プロジェクト: tkrym02/anaconda
 def get_location(self):
     rect = RECT()
     _user32.GetClientRect(self._hwnd, byref(rect))
     _user32.ClientToScreen(self._hwnd, byref(rect))
     return rect.left, rect.top