win32gui Member Function

 

win32gui.WindowFromPoint

int = WindowFromPoint(point)

Retrieves a handle to the window that contains the specified point.

 

Parameters

 

point : (int, int)

 

The point.

win32gui.ScreenToClient

(int,int) = ScreenToClient(hWnd, Point )

Convert screen coordinates to client coords

 

Parameters

 

hWnd :  PyHANDLE

 

Handle to a window

 

Point : (int,int)

 

Screen coordinates to be converted

win32gui.MoveToEx

(int, int) = MoveToEx(hdc, X , Y )

Changes the current drawing position

 

Parameters

 

hdc :  PyHANDLE

 

Device context handle

 

X : int

 

Horizontal pos in logical units

 

Y : int

 

Vertical pos in logical units

 

Return Value

Returns the previous position as (X, Y)

 

win32gui.FlashWindow

int = FlashWindow(hwnd, bInvert )

The FlashWindow function flashes the specified window one time. It does not change the active state of the window.

 

Parameters

 

hwnd :  PyHANDLE

 

Handle to a window

 

bInvert : int

 

Indicates if window should toggle between active and inactive



win32gui.FlashWindowEx

int = FlashWindowEx(hwnd, dwFlags , uCount , dwTimeout )

The FlashWindowEx function flashes the specified window a specified number of times.

 

Parameters

 

hwnd :  PyHANDLE

 

Handle to a window

 

dwFlags : int

 

Combination of win32con.FLASHW_* flags

 

uCount : int

 

Nbr of times to flash

 

dwTimeout : int

 

Elapsed time between flashes, in milliseconds

win32gui.DrawAnimatedRects

DrawAnimatedRects(hwnd, idAni, minCoords, restCoords)

Animates a rectangle in the manner of minimizing, mazimizing, or opening

 

Parameters

 

hwnd : int

 

handle to clipping window

 

idAni : int

 

type of animation, win32con.IDANI_*

 

minCoords :  PyRECT

 

rectangle coordinates (minimized)

 

restCoords :  PyRECT

 

rectangle coordinates (restored)

win32gui.Ellipse

Ellipse(hdc, LeftRect, TopRect, RightRect, BottomRect)

Draws a filled ellipse on a device context

 

Parameters

 

hdc :  PyHANDLE

 

Device context on which to draw

 

LeftRect : int

 

Left limit of ellipse

 

TopRect : int

 

Top limit of ellipse

 

RightRect : int

 

Right limit of ellipse

 

BottomRect : int

 

Bottom limit of ellipse


Other:

Ellipse
Draws a filled ellipse on a device context 

 

Pie
Draws a section of an ellipse cut by 2 radials 

 

Arc
Draws an arc defined by an ellipse and 2 radials 

 

ArcTo
Draws an arc defined by an ellipse and 2 radials 


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值