Windows API 绘图函数

The following functions are used with painting and drawing.

Function Description
BeginPaint Prepares a window for painting.
DrawAnimatedRects Draws a rectangle and animates it to indicate icon or window activity.
DrawCaption Draws a window caption.
DrawEdge Draws one or more edges of rectangle.
DrawFocusRect Draws a rectangle in the style that indicates the rectangle has the focus.
DrawFrameControl Draws a frame control.
DrawState Displays an image and applies a visual effect to indicate a state.
DrawStateProc A callback function that renders a complex image for DrawState .
EndPaint Marks the end of painting in a window.
ExcludeUpdateRgn Prevents drawing within invalid areas of a window.
GdiFlush Flushes the calling thread's current batch.
GdiGetBatchLimit Returns the maximum number of function calls that can be accumulated in the calling thread's current batch.
GdiSetBatchLimit Sets the maximum number of function calls that can be accumulated in the calling thread's current batch.
GetBkColor Returns the background color for a device context.
GetBkMode Returns the background mix mode for a device context.
GetBoundsRect Gets the accumulated bounding rectangle for a device context.
GetROP2 Gets the foreground mix mode of a device context.
GetUpdateRect Gets the coordinates of the smallest rectangle that encloses the update region of a window.
GetUpdateRgn Gets the update region of a window.
GetWindowDC Gets the device context for a window, including title bar, menus, and scroll bars.
GetWindowRgn Gets a copy of the window region of a window.
GetWindowRgnBox Gets the dimensions of the tightest bounding rectangle for the window region of a window.
GrayString Draws gray text at a location.
InvalidateRect Adds a rectangle to a window's update region.
InvalidateRgn Invalidates the client area within a region.
LockWindowUpdate Disables or enables drawing in a window.
OutputProc A callback function used with the GrayString function. It is used to draw a string.
PaintDesktop Fills the clipping region in a device context with a pattern.
RedrawWindow Updates a region in a window's client area.
SetBkColor Sets the background to a color value.
SetBkMode Sets the background mix mode of a device context.
SetBoundsRect Controls the accumulation of bounding rectangle information for a device context.
SetROP2 Sets the foreground mix mode.
SetWindowRgn Sets the window region of a window.
UpdateWindow Updates the client area of a window.
ValidateRect Validates the client area within a rectangle.
ValidateRgn Validates the client area within a region.
WindowFromDC Returns a handle to the window associated with a device context.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值