daojin 发表于 2013-2-7 03:29:01

Windows API 绘图函数

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.
页: [1]
查看完整版本: Windows API 绘图函数