Delphi API functions (many have not seen)

Source: Internet
Author: User
Tags check character local time

Adjustwindowrect given a window style, calculates the window size needed to get the target client area rectangle
Anypopup to determine if there are any pop-up windows on the screen
Arrangeiconicwindows a minimized child window that arranges a parent window
AttachThreadInput Connection Thread Input function
Begindeferwindowpos start the process of building a series of new window locations
BringWindowToTop bring the specified window to the top of the window list
Cascadewindows arranging windows in a cascading fashion
Childwindowfrompoint returns the handle of the first child window that contains the specified point in the parent window

ClientToScreen the screen coordinates of a point in the window that is represented by the client area coordinates
CloseWindow minimizes the specified window
Copyrect Rectangular Content Replication
DeferWindowPos The function specifies a new window position for a specific window
DestroyWindow clears the specified window and all its child windows
DrawAnimatedRects depicts a series of dynamic rectangles
EnableWindow allows or disables all mouse and keyboard input in the specified window
Enddeferwindowpos update the position and state of all the windows specified at the time of the DeferWindowPos call
Enumchildwindows enumerates child windows for the specified parent window

EnumThreadWindows enumerating the windows associated with a specified task
EnumWindows enumerates all the parent windows in the window list
Equalrect determine if two rectangular structures are the same
FindWindow look for the first top-level window in a window list that matches the specified criteria
FindWindowEx looking for the first child window in the window list that matches the specified criteria
FlashWindow flashing displays the specified window
GetActiveWindow getting the handle to the active window
GetCapture gets a handle to a window that is in the current input thread and has a mouse capture (which is received by mouse activity)
GetClassInfo gets a copy of the WNDCLASS structure (or wndclassex structure) that contains information about the specified class

Getclasslong gets a long variable entry for the window class
GetClassName the class name for the specified window
Getclassword get an integer variable for the window class
GetClientRect returns the size of the client area rectangle for the specified window
GetDesktopWindow get a window representing the entire screen (desktop window) handle
GetFocus the handle of the window that owns the input focus
GetForegroundWindow getting a handle to the foreground window
Getlastactivepopup gets the handle of the pop-up window that was recently activated in a given parent window
GetLastError Use this function to get extended error messages for previously called API functions

GetParent determines the parent window of the specified window
Gettopwindow Search the list of internal windows, looking for a handle to the first window that belongs to the specified window
GetUpdateRect gets a rectangle describing the part of the specified window that needs to be updated
GetWindow gets a handle to a window that has a specific relationship to a source window
Getwindowcontexthelpid gets the help scene ID associated with the window
GetWindowLong getting information from the structure of the specified window
GetWindowPlacement Obtaining status and location information for the specified window
GetWindowRect gets the bounding rectangle of the entire window, the border of the window, the title bar, the scroll bar, and the menu are all within this rectangle.

GetWindowText Gets the caption (caption) text of a form, or the contents of a control
Getwindowtextlength Investigate window title text or the length of control content
Getwindowword get information about the specified window structure
Inflaterect increase or decrease the size of a rectangle
Intersectrect This function loads a rectangle in the Lpdestrect, which is the intersection of the Lpsrc1rect and the Lpsrc2rect two rectangles
InvalidateRect block all or part of a window client area
IsChild determines whether a window is a child or subordinate window of another window

Isiconic to determine if the window has been minimized
Isrectempty determines whether a rectangle is empty
IsWindow determine if a window handle is valid
IsWindowEnabled to determine whether the window is active
Iswindowunicode determines whether a window is a unicode window. This means that the window receives Unicode text for all text-based messages
IsWindowVisible to determine whether the window is visible
Iszoomed Judging whether the window is maximized
LockWindowUpdate locks The specified window, prevents it from being updated
MapWindowPoints Convert a Window client area coordinate point to another window's client area coordinate system

MoveWindow change the position and size of the specified window
Offsetrect allows the rectangle to move by applying a specified offset
Openicon restores a minimized program and activates it
PtInRect determines whether the specified point is inside the rectangle
RedrawWindow redraw all or part of a window
ReleaseCapture release mouse capture for the current application
ScreenToClient determine the client area coordinates of a specified point on the screen
ScrollWindow all or part of the client area of a scrolling window
Scrollwindowex all or part of the client area of the window according to additional options

SetActiveWindow activates the specified window
SetCapture setting mouse capture to the specified window
Setclasslong setting a long variable entry for the window class
Setclassword setting an entry for a window class
SETFOCUSAPI sets the input focus to the specified window. If necessary, the window is activated
SetForegroundWindow Set the window to the system's foreground window
SetParent Specifies the new parent of a window
SetRect Setting the contents of the specified rectangle
Setrectempty to set a rectangle to an empty rectangle
Setwindowcontexthelpid Setting the Help Scene (context) ID for the specified window

SetWindowLong setting information for the specified window in the window structure
SetWindowPlacement setting window status and location information
SetWindowPos specifying a new position and state for a window
SetWindowText Setting the contents of a window's caption text or control
Setwindowword setting information for the specified window in the window structure
Showownedpopups Show or hide all pop-up windows from the specified window
ShowWindow visibility of the control window
Showwindowasync is similar to ShowWindow
Subtractrect loads the rectangle LPRCDST, which is the result of subtracting lprcSrc2 from the rectangle LPRCSRC1

Tilewindows to arrange windows in a tiled order
Unionrect loads a lpdestrect target rectangle, which is the result of the Union of Lpsrc1rect and Lpsrc2rect.
UpdateWindow Force Immediate Update window
ValidateRect check all or part of the client area of the window
Windowfrompoint returns a handle to the window that contains the specified point. Ignore masking, hiding, and transparent windows

TSQGW (2002-03-14-14:48:00)
Activatekeyboardlayout activates a new keyboard layout. The keyboard layout defines the position and meaning of the key on a physical keyboard
Beep is used to generate simple sounds
Chartooem converting a string from the ANSI character set to the OEM character set
Clipcursor to limit the pointer to a specified area
Convertdefaultlocale converts a special place identifier into a real local ID
CreateCaret creates an caret (cursor) based on the specified information and selects it as the default caret for the specified window
Destroycaret Erase (Destroy) an caret
Enumcalendarinfo enumerate the calendar information that is available in the specified "local" environment

Enumdateformats lists the long, short date formats available in the specified local settings
Enumsystemcodepages enumerating installed or supported code pages in the system
Enumsystemlocales enumeration of "local" settings that the system has installed or provides support for
Enumtimeformats enumerates the time formats that are applicable for a specified place
ExitWindowsEx exit Windows and restart with specific options
ExpandEnvironmentStrings Extending the Environment string
Freeenvironmentstrings translation of specified environment string blocks
GETACP Judging the ANSI code page that is currently in effect

Getasynckeystate specifying the state of a virtual key when a function call is judged
Getcaretblinktime determining the blink frequency of the caret cursor
Getcaretpos to determine the current position of the caret
Getclipcursor gets a rectangle that describes the clipping region currently defined for the mouse pointer
GetCommandLine gets a pointer to the current command-line buffer
GetComputerName get the name of this computer
Getcpinfo getting information about the specified code page
Getcurrencyformat formats a number according to the currency format for the specified "local" setting
GetCursor gets the handle of the currently selected mouse pointer

GetCursorPos get the current position of the mouse pointer
GetDateFormat formats a system date for the specified "local" format
Getdoubleclicktime determines the interval between two consecutive mouse clicks that will be processed into a double-click event
Getenvironmentstrings allocates and returns a handle to a memory block that contains the current environment string settings
GetEnvironmentVariable gets the value of an environment variable
Getinputstate to determine if there are any pending (pending) mouse or keyboard events
Getkbcodepage is replaced by GETOEMCP, the two functions are identical
Getkeyboardlayout gets a handle that describes the keyboard layout for the specified application

Getkeyboardlayoutlist get a list of all keyboard layouts that the system applies To
Getkeyboardlayoutname gets the name of the currently active keyboard layout
Getkeyboardstate get the current state of each virtual key on the keyboard
GetKeyboardType understand the information about the keyboard you are using
Getkeynametext to determine the key name under the condition of the scanning code
Getkeystate the state of the specified virtual key at the most recent input for the processed key
GetLastError Use this function to get extended error messages for previously called API functions
GetLocaleInfo Obtaining information relating to the designation of "place"

Getlocaltime get local date and time
Getnumberformat formatting a number in a specific format for a specified "place"
GETOEMCP Determining the Windows code page to convert between OEM and ANSI character sets
Getqueuestatus determining the type of message to be pending (pending processing) in the application message queue
GetSysColor to determine the color of a specified Windows display object
GetSystemDefaultLangID get the default language ID for the system
GetSystemDefaultLCID get the current default system "place"
GetSystemInfo get information about the underlying hardware platform

GetSystemMetrics returning information about the Windows environment
GetSystemPowerStatus getting information about the current system power state
GetSystemTime gets the current system time, which is in "coordinated World Time" (that is, UTC, also called GMT) format
Getsystemtimeadjustment synchronizing the internal system clock with an external clock signal source
Getthreadlocale gets the local ID of the current thread
GetTickCount used to get the length of time (in milliseconds) that has elapsed since Windows started
Gettimeformat formats a system time in a specific format for the currently specified "place"

GetTimeZoneInformation getting information about the system time zone settings
Getuserdefaultlangid to get the default language ID for the current user
GetUserDefaultLCID get the default "local" setting for the current user
GetUserName get the name of the current user
GetVersion determine which Windows and DOS versions are currently running
GetVersionEx getting version information about the platform and operating system
HideCaret hiding the caret (cursor) in the specified window
IsValidCodePage determine if a code page is valid
Isvalidlocale determine if a local identifier is valid

Keybd_event This function simulates the keyboard action
Loadkeyboardlayout Loading a keyboard layout
Mapvirtualkey performs different scan codes and character conversions based on the specified mapping type
Mapvirtualkeyex performs different scan codes and character conversions based on the specified mapping type
MessageBeep plays a system sound. System sound distribution is determined in the control Panel.
Mouse_event simulating one mouse event
Oemkeyscan determine the scan code and SHIFT key state of an ASCII character in the OEM character set
Oemtochar converting a string from the OEM character set to the ANSI character set

SETCARETBLINKTIME specifies the frequency at which the caret (cursor) flashes
Setcaretpos specify the position of the caret
Setcomputername setting a new computer name
SetCursor sets the specified mouse pointer to the current pointer
Setcursorpos setting the position of the pointer
Setdoubleclicktime set the interval between two consecutive mouse clicks to make the system think a double-click event
Setenvironmentvariable setting an environment variable to the specified value
Setkeyboardstate setting the status of each virtual key currently on the keyboard
SetLocaleInfo change User "local" settings information

Setlocaltime setting the current local time
SetSysColors setting the color of the specified window display object
Setsystemcursor change any one of the standard system pointers
SetSystemTime setting the current system time
Setsystemtimeadjustment timing adds a calibration value to synchronize the internal system clock with an external clock signal source
SetThreadLocale setting a place for the current thread
Settimezoneinformation Setting the system time zone information
ShowCaret Displays the caret (cursor) in the specified window
ShowCursor controlling the visibility of the mouse pointer
Swapmousebutton decide whether to swap the left and right mouse button functions

SystemParametersInfo getting and setting a large number of Windows system parameters
Systemtimetotzspecificlocaltime convert system time to local time
TOASCII converts a virtual key to an ASCII character based on the current scan code and keyboard information
Tounicode converts a virtual key to a Unicode character based on the current scan code and keyboard information
Unloadkeyboardlayout uninstalling the specified keyboard layout
Vkkeyscan to determine the state of a virtual key and SHIFT key for an ASCII character in the Windows character set
Finish

TSQGW (2002-03-14-14:50:00)
AppendMenu Add a menu item to the specified menus
Checkmenuitem check or Undo Check the specified menu entry
CHECKMENURADIOITEM Specifies that a menu entry is checked as a "radio" item
CreateMenu Creating a new menu
CreatePopupMenu Create an empty pop-up menu
DeleteMenu Delete the specified menu entry
DestroyMenu Delete the specified menu
DrawMenuBar the menu for the specified window
EnableMenuItem allow or disallow a specified menu entry
GetMenu get a handle to a menu in the window
Getmenucheckmarkdimensions returns the size of a menu check character

Getmenucontexthelpid get a menu of Help scene ID
Getmenudefaultitem determine which entry in the menu is the default entry
Getmenuitemcount returns the number of items (menu items) in the menu
Getmenuitemid returns the menu ID of the entry at the specified position in the menu
Getmenuiteminfo obtain (receive) specific information about a menu item
Getmenuitemrect loading screen coordinate information for a specified menu entry in a rectangle
Getmenustate get information about the status of the specified menu item
Getmenustring the string that gets the specified menu entry
GetSubMenu gets a handle to a pop-up menu that is located at the specified location in the menu

GetSystemMenu gets the handle to the system menu for the specified window
Hilitemenuitem control the highlight state of a top-level menu entry
InsertMenu inserts a menu entry at the specified position in the menu and moves the other entries down as needed
Insertmenuitem Inserting a new menu entry
Ismenu determines whether the specified handle is a handle to a menu
LoadMenu loading a menu from a specified module or application instance
LoadMenuIndirect Loading a menu
Menuitemfrompoint determines which menu entry contains a specified point on the screen
Modifymenu changing menu Entries

Removemenu Delete the specified menu entry
SetMenu Settings Window menu
Setmenucontexthelpid Setting the Help scene ID for a menu
SetMenuDefaultItem to set a menu entry as the default entry
SetMenuItemBitmaps set a special map to use in the specified menu entry instead of the standard check mark (√)
Setmenuiteminfo setting the specified information for a menu entry
TrackPopupMenu display a pop-up menu anywhere on the screen
TrackPopupMenuEx is similar to TrackPopupMenu, except that it provides additional functionality

Finish

Here are a few of the type definitions for menu functions
Menuiteminfo This structure contains the information of the menu item
Tpmparams This structure is used for TRACKPOPUPMENUEX functions to support additional functions

TSQGW (2002-03-14-14:50:00)
Abortpath discards all paths selected in the specified device scene. Also cancels the creation of any path that is currently in progress
Anglearc draw a line with a connecting arc
ARC draws an arc
Beginpath Start a path branch
CANCELDC a long-time drawing operation to cancel another line thread
Chord Draw a String
Closeenhmetafile closes the specified enhanced metafile device scene and returns a handle to the newly created metafile
Closefigure drawing to a path, close the currently open graphic
Closemetafile closes the specified metafile device scene and returns a handle to the newly created metafile

Copyenhmetafile making a copy of the specified enhanced metafile (copy)
Copymetafile making a copy of the specified (standard) metafile
CreateBrushIndirect Create a brush on the basis of a LOGBRUSH data structure
CreateDIBPatternBrush Create a brush with a device-independent bitmap to specify the brush style (pattern)
CreateEnhMetaFile Creating an Enhanced metafile device scenario
Createhatchbrush Create a brush with a shaded pattern
Createmetafile Creating a metafile device scenario
CreatePatternBrush Create a brush with a bitmap that specifies a brush pattern

CreatePen Create a brush with the specified style, width, and color
Createpenindirect creates a brush based on the specified logpen structure
CreateSolidBrush creating a brush with a solid color
DeleteEnhMetaFile Deleting the specified enhanced metafile
Deletemetafile Deleting the specified metafile
DeleteObject Delete GDI objects, all system resources used by the object are freed
Drawedge the border of a rectangle with the specified style
Drawescape (Escape) function sends data directly to the display device driver
DrawFocusRect Draw a Focus rectangle

Drawframecontrol depicts a standard control
Drawstate apply a variety of effects to an image or drawing operation
Ellipse depicts an ellipse, surrounded by a specified rectangle.
Endpath Stop defining a path
Enumenhmetafile lists individual metafile records for an enhanced metafile
Enummetafile enumeration of individual metafile records for a standard Windows metafile
EnumObjects enumeration of brushes and brushes that can be used with specified device scenes
Extcreatepen Creating an extension brush (decoration or geometry)
Extfloodfill fills an area with the currently selected brush in the specified device scene

FillPath Close any open graphics in the path and fill them with the current brush
FillRect fills a rectangle with the specified brush
Flattenpath convert all curves in a path to line segments
FloodFill fills an area in the specified device scene with the currently selected brush
Framerect draw a border around a rectangle with the specified brush
Gdicomment adds a comment message for the specified enhanced metafile device scenario
Gdiflush perform any pending drawing operations
Gdigetbatchlimit determine how many GDI drawing commands are in the queue
GDISETBATCHLIMIT specifies how many GDI drawing commands are capable of entering the queue

Getarcdirection when drawing arcs, judging the direction of the drawing currently in use
GetBkColor gets the current background color of the specified device scene
Getbkmode the current background fill mode for the specified device scene
Getbrushorgex determines the starting point of the currently selected brush in the specified device scene
Getcurrentobject gets the currently selected object of the specified type
Getcurrentpositionex to get the current brush position in the specified device scene
GetEnhMetaFile get a metafile handle for an enhanced metafile contained in a disk file
Getenhmetafilebits Copy the specified enhanced metafile into a memory buffer

Getenhmetafiledescription returns a description of an enhanced metafile
Getenhmetafileheader getting the metafile header for enhanced metafile
GetEnhMetaFilePaletteEntries get all or part of the palette for enhanced metafile
Getmetafile metafile handle for metafile contained in a disk file
Getmetafilebitsex Copy the specified metafile to a memory buffer
Getmiterlimit get the slope limit (Miter) setting for the device scene
Getnearestcolor a solid color closest to the specified color, depending on the display capability of the device

Getobjectapi gets a structure that describes the specified object
Getobjecttype determines the type of GDI object referenced by the specified handle
GetPath get a series of data defined for the current path
GetPixel gets the RGB value of a pixel in the specified device scene
Getpolyfillmode polygon Fill mode for the specified device scene
GetROP2 the current drawing mode for the specified device scene
Getstockobject get an intrinsic object (Stock)
Getsyscolorbrush get a brush for any standard system color
Getwinmetafilebits convert an enhanced metafile to a standard Windows metafile by populating data in a buffer for standard metafile
InvertRect reverses the specified rectangle in a device scene by reversing the value of each pixel
LineDDA enumeration of all points in a specified segment
LineTo draws a line with the current brush, connecting from the current position to a specified point

Http://www.cnblogs.com/dashan9zj/archive/2008/11/14/1333685.html

Delphi API functions (many have not seen)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.