6. menu functions of Apis
AppendMenu adds a menu item to the specified menu
CheckMenuItem
CheckMenuRadioItem
CreateMenu create a menu
CreatePopupMenu: Create an empty pop-up menu
DeleteMenu: delete a specified menu entry
DestroyMenu
DrawMenuBar is used to redraw a menu for a specified window.
EnableMenuItem allows or disables specified menu entries
GetMenu: Get the handle of a menu in the window.
GetMenuCheckMarkDimensio
Ns returns the size of a menu check mark.
GetMenuContextHelpId obtains the help scenario ID of a menu.
GetMenuDefaultItem determines which item in the menu is the default item
GetMenuItemCount returns the number of entries (menu items) in the menu.
GetMenuItemID: return the menu ID of the entry at the specified position in the menu.
GetMenuItemInfo obtains (receives) specific information related to a menu entry.
GetMenuItemRect loads the screen coordinate information of the specified menu bar in a rectangle
GetMenuState: obtains information about the status of a specified menu entry.
GetMenuString
GetSubMenu gets the handle of a pop-up menu, which is located at the specified position in the menu
GetSystemMenu gets the system menu handle of the specified window
HiliteMenuItem controls the highlighted display status of top-level menu entries
InsertMenu
Insert a menu entry at the specified position of the menu and move other entries downward as needed
InsertMenuItem Insert a new menu entry
IsMenu determines whether the specified handle is a menu handle
LoadMenu loads a menu from a specified module or application instance
LoadMenuIndirect loads a menu
MenuItemFromPoint: determines which menu entry contains a specified Vertex on the screen.
ModifyMenu
RemoveMenu deletes a specified menu entry
SetMenu
SetMenuContextHelpId: Set the help scenario ID of a menu
SetMenuDefaultItem sets a menu entry as the default entry
SetMenuItemBitmaps
Set a specific bitmap to be used in the specified menu entry, instead of the standard checkmark (√)
SetMenuItemInfo sets the specified information for a menu entry
TrackPopupMenu displays a pop-up menu anywhere on the screen
TrackPopupMenuEx is similar to TrackPopupMenu, but it provides additional functions.
7. API bitmap, icon, and grating operation functions
BitBlt copies a bitmap from one device scenario to another
CopyIcon
Make a copy of the specified icon or mouse pointer. This copy belongs to the application that issued the call.
CopyImage
Copy a bitmap, icon, or pointer and perform some conversion during the copy process.
CreateBitmap creates a device-related bitmap in the specified format.
CreateBitmapIndirect creates a device-related bitmap.
CreateCompatibleBitmap
Creates a device-related bitmap that is compatible with the specified device scenario.
CreateCursor creates a mouse pointer
CreateDIBitmap
Creates a device-related Bitmap Based on a device-independent bitmap.
CreateDIBSection create a DIBSection
CreateIcon creates an icon
CreateIconIndirect creates an icon
DestroyCursor clears the specified mouse pointer and releases all system resources it occupies.
DestroyIcon clear icon
DrawIcon draws an icon at a specified position
DrawIconEx
Depicts an icon or mouse pointer. This function provides more functions than DrawIcon.
ExtractAssociatedIcon
Determines whether an executable program or DLL has an icon or whether it is associated with the file specified in the system registry and extracted
ExtractIcon
Determine whether an executable file or DLL has an icon and extract it.
GetBitmapBits copies the binary bit from the bitmap to a buffer zone.
GetBitmapDimensionEx obtains the width and height of a bitmap.
GetDIBColorTable obtains the color table information from the DIBSection of the selected device scenario.
GetDIBits
Copy the binary from a bitmap to a device-independent bitmap.
GetIconInfo obtains information about the icon.
GetStretchBltMode judges StretchBlt and
Scaling mode used by the StretchDIBits Function
LoadBitmap loads a bitmap from a specified module or application instance.
LoadCursor loads a mouse pointer from a specified module or application instance
LoadCursorFromFile
Create a pointer based on a pointer file or an animation pointer File
LoadIcon loads an icon from a specified module or application instance
LoadImage loads a bitmap, icon, or pointer.
MaskBlt performs complex image transmission and simultaneously processes masks.
PatBlt fills the specified device scenario with a pattern based on the selected brush
PlgBlt
Copy a bitmap and convert it into a parallelogram. It allows bitmap rotation.
SetBitmapBits: Copies the binary bit from the buffer to a bitmap.
SetBitmapDimensionEx
Set the width of a bitmap. In the unit of 1mm
SetDIBColorTable: sets the color table information of a DIBSection in the device scenario.
SetDIBits
Copies the binary bits from the device-independent bitmap to a device-related bitmap.
SetDIBitsToDevice
Copies all or part of data from a device-independent bitmap to a device.
SetStretchBltMode specifies the StretchBlt and
Scaling mode of the StretchDIBits Function
StretchBlt copies a bitmap from one device scenario to another
StretchDIBits
Copies all or part of data from a device-independent bitmap to a specified device scenario.
8. Plotting functions of Apis
AbortPath
Discard all paths selected for a specified device scenario. Cancel creating any path currently in progress
AngleArc draws a line with a connection arc
Draw an Arc
BeginPath starts a path Branch
CancelDC cancels the long Drawing operation in another thread
Draw a string with Chord
CloseEnhMetaFile
Disable the device scenario of the specified Enhanced Metafile and return a handle to the newly created Metafile.
When CloseFigure depicts a path, close the currently opened Image
CloseMetaFile
Disable the device scenario of the specified Metafile and return a handle to the newly created Metafile.
CopyEnhMetaFile: Create a copy (copy) of the specified enhanced primitive File)
CopyMetaFile: Creates a copy of a specified (standard) Metafile.
CreateBrushIndirect
Create a brush based on a LOGBRUSH Data Structure
CreateDIBPatternBrush
Create a brush with a device-independent bitmap to specify the brush style (pattern)
CreateEnhMetaFile: Create an Enhanced Metafile device scenario
CreateHatchBrush creates a shadow brush
CreateMetaFile: Create a Metafile device scenario
CreatePatternBrush creates a brush with a bitmap of the specified brush pattern
CreatePen creates a paint brush with the specified style, width, and color
CreatePenIndirect creates a paint brush Based on the specified LOGPEN structure.
CreateSolidBrush create a brush with solid color
DeleteEnhMetaFile: delete a specified Enhanced Metafile.
DeleteMetaFile: delete a specified Metafile
DeleteObject: Delete the GDI object. All system resources used by the object will be released.
DrawEdge depicts the border of a rectangle with the specified Style
The DrawEscape code change function sends data directly to the display device driver.
DrawFocusRect draws a focal rectangle
DrawFrameControl depicts a standard control
DrawState applies a variety of effects to an image or drawing operation
Ellipse depicts an Ellipse surrounded by a specified rectangle
The EndPath stops defining a path.
EnumEnhMetaFile
For an enhanced primitive file, list its individual metadata file records
EnumMetaFile
Enumeration of individual metadata file records for a standard windows Metafile
EnumObjects enumeration brushes and brushes that can be used along with a specified device scenario
ExtCreatePen creates an extension paint brush (decoration or ry)
ExtFloodFill fills an area with the selected brush in a specified device scenario
FillPath: close any opened image in the path and fill it with the current brush.
FillRect fills a rectangle with the specified brush
FlattenPath converts all curves in a path into line segments
FloodFill fills an area in the specified device scenario with the selected brush
FrameRect draws a border around a rectangle with the specified brush
GdiComment adds a comment for the specified Enhanced Metafile device scenario
GdiFlush performs any pending drawing operations
GdiGetBatchLimit: determines how many GDI drawing commands are in the queue
GdiSetBatchLimit specifies how many GDI drawing commands can enter the queue
When GetArcDirection draws an arc, it determines the current drawing direction
GetBkColor: obtains the current background color of a specified device scenario.
GetBkMode obtains the current background filling mode for specified device scenarios.
GetBrushOrgEx determines the starting point of the selected brush in a specified device scenario
GetCurrentObject: Get the currently selected object of the specified type
GetCurrentPositionEx obtains the current paint position in the specified device scenario.
GetEnhMetaFile
Obtains the metadata file handle of an enhanced metadata file contained in a disk file.
GetEnhMetaFileBits
Copies the specified enhanced primitive file to a memory buffer.
GetEnhMetaFileDescription returns the description of an Enhanced Metafile.
GetEnhMetaFileHeader: obtains the Metafile header of the enhanced primitive file.
GetEnhMetaFilePaletteEntries
Retrieve the entire or part of the enhanced primitive file palette
GetMetaFile: Get the metadata file handle of the metadata file contained in a disk file
GetMetaFileBitsEx copies the specified Metafile to a memory buffer
GetMiterLimit: Set the slope limit (Miter) for the device scenario.
GetNearestColor
Obtains a solid color closest to a specified color based on the display capability of the device.
GetObjectAPI gets a structure that describes the specified object
GetObjectType determines the type of the GDI object referenced by the specified handle
GetPath gets a series of data defined for the current path
GetPixel obtains the RGB value of a pixel in a specified device scenario.
GetPolyFillMode obtains the polygon filling mode for specified device scenarios.
GetROP2 obtains the current drawing mode for a specified device scenario
GetStockObject gets an inherent object (Stock)
GetSysColorBrush gets a brush for any standard system color
GetWinMetaFileBits
By filling in data for standard graph meta files in a buffer, an enhanced primitive file is converted into a standard windows Metafile.
InvertRect
Reverses the specified rectangle in a device scenario by reversing the value of each pixel.
LineDDA enumeration all vertices in a specified line segment
LineTo draws a line with the current paint brush and connects it from the current position to a specified vertex.
MoveToEx specifies a new current paint position for a specified device scenario
PaintDesk depicts the desktop wallpaper pattern in a specified device scenario
PathToRegion converts the selected path to a region.
Pie draws a Pie chart
PlayEnhMetaFile: draws an Enhanced Metafile in a specified device scenario.
PlayEnhMetaFileRecord playback an enhanced element file record
PlayMetaFile: play back a Metafile in a specified device scenario.
PlayMetaFileRecord: playback of a single record from a Metafile
Polybetiller depicts one or more betiller curves.
PolyDraw depicts a complex curve, which consists of a line segment and a besell curve.
Polygon depicts a Polygon.
Polyline depicts a series of line segments with the current paint brush
PolyPolygon depicts two or more polygon with the selected paint brush
PolyPolyline depicts two or more polygon with the selected paint brush
Rectangle depicts the Rectangle with the selected paint brush and fills it with the selected paint brush
RoundRect
Draw a rounded rectangle with the selected paint brush and fill it with the selected paint brush.
SelectClipPath combines the current path of the device scenario into the cut area
SelectObject: select a graphical object for the current device scenario
SetArcDirection
SetBkColor sets the background color for the specified device scenario
SetBkMode specifies the fill mode of the shadow brush, dotted brush, and space in characters
SetBrushOrgEx sets the starting point of the selected brush for the specified device scenario
SetEnhMetaFileBits
Creates an Enhanced Metafile with the data contained in the specified memory buffer.
SetMetaFileBitsEx
Creates a Metafile with the data structure contained in the specified memory buffer.
SetMiterLimit: sets the current slope limit for a device scenario.
SetPixel sets the RGB value of a pixel in a specified device scenario.
SetPixelV sets the RGB value of a pixel in a specified device scenario.
SetPolyFillMode: Set the polygon filling mode.
SetROP2
Set the drawing mode for the specified device scenario. Consistent with the DrawMode attribute of vb
SetWinMetaFileBits
Convert a standard Windows Metafile to a reinforced Metafile
StrokeAndFillPath
Disable all regions opened in the path for specified device scenarios
StrokePath
Outlines a path with the current paint brush. The opened graph is not disabled by this function.
UnrealizeObject
Before selecting a paint brush object to a device scenario, if you want to use SetBrushOrgEx to modify the starting point of the paint brush, you must call this function first.
WidenPath redefines the selected path based on the width of the selected paint brush.
9. API-based device scenario Functions
CombineRgn combines two regions into a new region
CombineTransform drives world conversion. It is equivalent to two conversions in order
CreateCompatibleDC creates a memory device scenario consistent with the specific device scenario
CreateDC creates a device for a dedicated device
CreateEllipticRgn
CreateEllipticRgnIndirect
CreateIC creates an information scenario for a dedicated device
CreatePolygonRgn creates an area surrounded by a series of points
CreatePolyPolygonRgn
Create an area composed of multiple polygon. Each polygon should be closed.
CreateRectRgn create a rectangular area
CreateRectRgnIndirect creates a rectangular area
CreateRoundRectRgn create a rounded rectangle
DeleteDC deletes a special device scenario or information scenario and releases all related window resources.
DPtoLP coordinates the point matrix from the device to the logic coordinate of the specific device scenario
EqualRgn determine whether the two regions are equal
ExcludeClipRect
Remove a rectangular area from the clipping area of a specific device scenario. Drawing is not allowed in the rectangle
ExcludeUpdateRgn removes the refresh area of the specified window from the tailored area of the dedicated device scenario
ExtCreateRegion: Modify region based on world Conversion
ExtSelectClipRgn combines the specified area to the current clipping area of the device scenario.
FillRgn fills the specified area with the specified brush
FrameRgn draws an external frame around a specified area with a specified brush
GetBoundsRect: Get the boundary rectangle of a specified device scenario
GetClipBox obtains the minimum rectangle that completely contains the clipping area of the specified device scenario.
GetClipRgn
GetDC
GetDCEx
Obtains a device scenario for a specified window. This function provides more options than GetDC.
GetDCOrgEx obtains the starting position of a specified device scenario (represented by screen coordinates)
GetDeviceCaps returns information based on the features of the specified device.
GetGraphicsMode determine whether to allow enhanced graphics mode (World conversion)
GetMapMode
GetRegionData mount the RgnData structure or buffer that describes the region information
GetRgnBox obtains the smallest rectangle that completely contains the specified area.
GetUpdateRgn determines the refresh area of the specified window. This region is currently invalid and needs to be refreshed
GetViewportExtEx
GetViewportOrgEx: Get the start point of the device scene.
GetWindowDC
Obtain the device scenario of the entire window (including the border, scroll bar, title bar, menu, and so on)
Getjavaswextex: obtains the window range of a specified device scenario.
Getjavasworgex obtains the start point of the logical window for a specified device scenario.
Getjavaswrgn get window area
GetWorldTransform if there is a world conversion, get the current world conversion for the device scenario
IntersectClipRect defines a new clipping area for the specified device
InvalidateRgn
Make the specified area of the window not active, and add it to the Window refresh area so that it can be re-painted later
InvertRgn reverse each pixel value by reversing the specified area of a device scenario
LPtoDP converts the logic coordinate of the dot matrix from the specified device scenario to the device coordinate
ModifyWorldTransform
OffsetClipRgn: Translation of device scene clipping area based on specified quantity
OffsetRgn pan the specified region at the specified offset
OffsetViewportOrgEx: Specifies the position of the translation device.
Offset0000worgex translation specifies the start point of the device scenario window
PaintRgn uses the background color of the current brush to fill the specified area
PtInRegion: determines whether the vertex is in the specified region.
PtVisible: determines whether the specified vertex is visible (that is, whether the vertex is in the device scene clipping zone)
RectInRegion
RectVisible
Determine whether the specified rectangle is partially visible (whether it is in the device scene clipping Area)
ReleaseDC releases a specified device scenario obtained by calling the GetDC or GetWindowDC function.
RestoreDC restores a previously stored device scenario from the device scenario Stack
SaveDC saves the specified device scenario status to the Windows Device scenario stack.
ScaleViewportExtEx
ScaleWindowExtEx scaling specifies the device scenario window range
ScrollDC in the window (represented by the device scenario), the horizontal and (or) vertical scroll rectangle
SelectClipRgn: select a new cropping area for a specified device scenario
SetBoundsRect: Set the boundary rectangle of the specified device scenario
SetGraphicsMode
Allows or disables enhanced graphics to provide some support (including world conversion)
SetMapMode: sets the ing mode for a specified device scenario.
SetRectRgn: Set the region to the specified rectangle.
SetViewportExtEx
SetViewportOrgEx
Setmediawextex: Set the window range of the specified device scenario
Setdomainworgex: Set the start point of the specified device scenario window
Setmediawrgn settings window area
SetWorldTransform
In the ValidateRgn activation window, specify a region and remove it from the refresh area.
WindowFromDC retrieves the handle of a window related to a certain device scenario