六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 100|回复: 0

Windows API 绘图函数

[复制链接]

升级  99.33%

57

主题

57

主题

57

主题

秀才

Rank: 2

积分
199
 楼主| 发表于 2013-2-7 03:29:01 | 显示全部楼层 |阅读模式
The following functions are used with painting and drawing.
FunctionDescriptionBeginPaintPrepares a window for painting.DrawAnimatedRectsDraws a rectangle and animates it to indicate icon or window activity.DrawCaptionDraws a window caption.DrawEdgeDraws one or more edges of rectangle.DrawFocusRectDraws a rectangle in the style that indicates the rectangle has the focus.DrawFrameControlDraws a frame control.DrawStateDisplays an image and applies a visual effect to indicate a state.DrawStateProcA callback function that renders a complex image for DrawState.EndPaintMarks the end of painting in a window.ExcludeUpdateRgnPrevents drawing within invalid areas of a window.GdiFlushFlushes the calling thread's current batch.GdiGetBatchLimitReturns the maximum number of function calls that can be accumulated in the calling thread's current batch.GdiSetBatchLimitSets the maximum number of function calls that can be accumulated in the calling thread's current batch.GetBkColorReturns the background color for a device context.GetBkModeReturns the background mix mode for a device context.GetBoundsRectGets the accumulated bounding rectangle for a device context.GetROP2Gets the foreground mix mode of a device context.GetUpdateRectGets the coordinates of the smallest rectangle that encloses the update region of a window.GetUpdateRgnGets the update region of a window.GetWindowDCGets the device context for a window, including title bar, menus, and scroll bars.GetWindowRgnGets a copy of the window region of a window.GetWindowRgnBoxGets the dimensions of the tightest bounding rectangle for the window region of a window.GrayStringDraws gray text at a location.InvalidateRectAdds a rectangle to a window's update region.InvalidateRgnInvalidates the client area within a region.LockWindowUpdateDisables or enables drawing in a window.OutputProcA callback function used with the GrayString function. It is used to draw a string.PaintDesktopFills the clipping region in a device context with a pattern.RedrawWindowUpdates a region in a window's client area.SetBkColorSets the background to a color value.SetBkModeSets the background mix mode of a device context.SetBoundsRectControls the accumulation of bounding rectangle information for a device context.SetROP2Sets the foreground mix mode.SetWindowRgnSets the window region of a window.UpdateWindowUpdates the client area of a window.ValidateRectValidates the client area within a rectangle.ValidateRgnValidates the client area within a region.WindowFromDCReturns a handle to the window associated with a device context.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表