Delphi Common API functions

Source: Internet
Author: User
Tags check character

Delphi API function Adjustwindowrect given a window style, calculate the desired window size for the target client area rectangle Anypopup Determine if there are any pop-ups on the screen arrangeiconicwindows arrange a parent window The minimized child window attachthreadinput connection thread input function Begindeferwindowpos starts the process of building a series of new window positions bringwindowtotop takes the specified window to the top of the window list Cascadewind OWS arranges Windows Childwindowfrompoint returns the handle of the first child window in the parent window that contains the specified point clienttoscreen the screen coordinates of a point within the window that is represented by client coordinates CloseWindow minimizing the specified window Port copyrect Rectangle content Copy 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 E    Nablewindow The specified window allows or disables all mouse and keyboard input enddeferwindowpos simultaneously updates the position and status of all the Windows specified when the DeferWindowPos call Enumchildwindows enumerates child windows for the specified parent window   EnumThreadWindows enumeration of windows that are related to the specified task EnumWindows all the parent windows in the Enumeration window list Equalrect Determine if two rectangles are the same FindWindow look for the first top-level window in the window list that matches the specified criteria FindWindowEx looking for the first child window in the window list that matches the specified criteria FlashWindow flashes the specified window GetActiveWindow gets the handle to the active window GetCapture get a handle to the window that is located in the current input thread and has 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 GetC Lassname get the class name for the specified windowClassword gets 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 get a handle to the window that has the input focus    GetForegroundWindow gets the handle to the foreground window Getlastactivepopup gets the handle to the pop-up window that was recently activated in a given parent window GetLastError for the previously called API function, using this function to get the extended error message GetParent determines the parent window of the specified window Gettopwindow searches the list of internal windows, looking for a handle to the first window that belongs to the specified window GetUpdateRect get a rectangle that describes the part of the specified window that needs to be updated GetWindow get a 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 obtains information from the structure of the specified window getwindowplacement gets the Status and location information GetWindowRect gets the bounding rectangle of the entire window, the border of the window, the title bar, the ScrollBar, and the menu are all within the rectangle GetWindowText Gets the caption (caption) text of a form, or the contents of a control Getwindowte Xtlength investigate the length of the title text or the contents of the control Getwindowword get information about the specified window structure inflaterect increase or decrease the size of a rectangle intersectrect This function loads a rectangle in Lpdestrect, which is The intersection of Lpsrc1rect and Lpsrc2rect two rectangles invalidaterect block all or part of a window's client area IsChild determine if a window is a child or subordinate window of another window isiconic determine if the window has been minimized IsR Ectempty determines whether a rectangle is empty IsWindow determines whether a window handle is valid iswindowenabled determines 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 determines whether the window is visible iszoomed determines whether the window is maximized lockwindowupdate lock the specified window, and prevents it from updating mapwindowpoints convert a window client area coordinate point to another window's client area coordinate system MoveWindow changes the position and size of the specified window Offsetrect by applying a specified offset, which moves the rectangle Openicon restores a minimized program and activates it ptinrect determines whether the specified point is inside the rectangle Redra Wwindow redraw all or part of the window ReleaseCapture for the current application release mouse capture screentoclient determine the client area coordinates of a specified point on the screen ScrollWindow scroll window all or part of the client area SCROLLW Indowex to scroll through all or part of the client area of the window, depending on the additional options SetActiveWindow activates the specified window SetCapture sets the mouse capture to the specified window Setclasslong set a long variable entry for the window class SetC Lassword set an entry for the window class SETFOCUSAPI set the input focus to the specified window. If necessary, the window is activated SetForegroundWindow the window is set to the system's foreground window SetParent specifies a window's new parent SetRect sets the contents of the specified rectangle setrectempty the rectangle to an empty rectangle Setwin Dowcontexthelpid sets the help scene (context) ID for the specified window SetWindowLong sets the information for the specified window in the window structure setwindowplacement sets the window state and location information SetWindowPos for the window refers to Set a new location and status SetWindowText sets the title text of the window or the contents of the control Setwindowword set information for the specified window in the window structure showownedpopups Show or hide all pop-up windows that are owned by the specified window SHOWWI The visibility of the Ndow control window showwindowasync similar to ShowWindow subtractrect loading the rectangle LPRCDST, which is subtracted from the LPRCSRC1 in the rectangle lprcSrc2 getsThe result of tilewindows the window in a tiled order Unionrect mount a lpdestrect target rectangle, which is the result of Lpsrc1rect and Lpsrc2rect combined UpdateWindow Force immediate update of the window Valid Aterect all or part of the client area of the check 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 Activate a new keyboard layout. The keyboard layout defines the position and meaning of the key on a physical keyboard Beep is used to generate a simple sound chartooem converts a string from the ANSI character set to the OEM character set clipcursor restricts the pointer to the specified area convertdefaultlocal E converts a special local identifier into a real place ID CreateCaret creates an caret (cursor) based on the specified information and selects it as the default caret for the specified window Destroycaret clears (destroys) an caret Enumcalendarinfo enumeration The calendar information that is available in the specified local environment Enumdateformats enumerates the long, short date formats available in the specified locals setting enumsystemcodepages enumerates the installed or supported code pages in the system Enumsystemlocales enumeration system The "place" setting that has been installed or provided supports Enumtimeformats enumeration of a specified place in the applicable time format ExitWindowsEx exit windows, and restart ExpandEnvironmentStrings with specific options to expand the environment word String Freeenvironmentstrings translation of the specified environment string block GETACP determine the ANSI code page that is currently in effect getasynckeystate specify the state of the virtual key when judging the function call Getcaretblinktime judgment The blink frequency of the caret cursor Getcaretpos determines the current position of the caret getclipcursor gets a rectangle that describes the clipping region currently defined for the mouse pointer getcommandline obtains a pointer to the current command-line buffer Getcomp UternameGet the name of this computer getcpinfo get information about the specified code page getcurrencyformat for the specified "local" setting, a number is formatted according to the currency format GetCursor gets the handle of the currently selected mouse pointer getcursor Pos gets the current position of the mouse pointer GetDateFormat for the specified "local" format, a system date is formatted Getdoubleclicktime determines the interval between two consecutive mouse clicks that will be processed into a double-click event getenvironments Trings 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 determine if there is any pending (pending processing) mouse or keyboard event getkbcod Epage is replaced by GETOEMCP, both functions are identical getkeyboardlayout gets a handle that describes the keyboard layout of the specified application getkeyboardlayoutlist get a list of all keyboard layouts that the system applies to Getkeyboa Rdlayoutname gets the name of the currently active keyboard layout getkeyboardstate Gets the current state of each virtual key on the keyboard GetKeyboardType understand the information about the keyboard that is being used getkeynametext on the premise of giving the scan code , determine the key name getkeystate for the processed keys, in the most recent input information, determine the state of the specified virtual key GetLastError for the previously called API functions, using this function to obtain extended error information GetLocaleInfo get the specified "place" related Information Getlocaltime get local date and time Getnumberformat for the specified "place", format a number in a specific format GETOEMCP determine the Windows code page that is converted between the OEM and ANSI character sets Getqueue Status determines the message type pending (pending processing) in the application message queue GetSysColor determines the color of the specified Windows display object GetSystemDefaultLangID Gets the default language ID of the system GETSYSTEMDEFAULTLC The ID gets the current default system "place" GetsysTeminfo get information about the underlying hardware platform GetSystemMetrics return information about the Windows environment GetSystemPowerStatus get information about the current system power state GetSystemTime get the current department Coordinated world time (UTC, also called GMT) format getsystemtimeadjustment to synchronize the internal system clock with an external clock signal source Getthreadlocale get the local ID of the current thread GetTic   Kcount used to obtain the length of time (in milliseconds) that has elapsed since Windows was started Gettimeformat for the currently specified "place", format a system time in a specific format gettimezoneinformation get information about the system time zone settings Getuserdefaultlangid get the default language ID for the current user getuserdefaultlcid get the current user's default "local" setting GetUserName get the name of the current user GetVersion judge the currently running window S and DOS version GetVersionEx get version information related to the platform and operating system HideCaret hide the caret (cursor) in the specified window isvalidcodepage determine if a code page is valid Isvalidlocale determine if the local identifier is No effective keybd_event This function simulates the keyboard action Loadkeyboardlayout loads a keyboard layout Mapvirtualkey according to the specified mapping type, performs different scan codes and character conversions Mapvirtualkeyex according to the reference To perform different scan codes and character conversions MessageBeep play a system sound. The system sound allocation scheme is determined in the Control Panel mouse_event simulates a mouse event Oemkeyscan the scan code and SHIFT key state of an ASCII character in the OEM character set Oemtochar Convert a string of the OEM character set to ANSI characters Set Setcaretblinktime Specifies the caret (cursor) Blink frequency Setcaretpos Specify the position of the caret Setcomputername set a new computer name SetCursor will specifyThe mouse pointer is set to the current pointer Setcursorpos sets the position of the pointer setdoubleclicktime the interval between two consecutive mouse clicks to make the system think of a double-click event setenvironmentvariable sets an environment variable to the specified   The value Setkeyboardstate sets the current state of each virtual key on the keyboard setlocaleinfo changes the user "place" setting information setlocaltime setting the current local time setsyscolors setting specifies the color of the window display object Setsystemcursor change any one of the standard system pointers SetSystemTime set the current system time setsystemtimeadjustment timing Add a calibration value to synchronize the internal system clock with an external clock signal source SETTHREADL Ocale set the local settimezoneinformation for the current thread set the system time zone information ShowCaret display the caret (cursor) in the specified window ShowCursor control the visibility of the mouse pointer Swapmousebutton The function of SystemParametersInfo to get and set a large number of Windows system parameters Systemtimetotzspecificlocaltime Convert system time to local time toascii based on current Scan code and keyboard information, convert a virtual key to ASCII character Tounicode converts a virtual key to a Unicode character based on the current scan code and keyboard information Unloadkeyboardlayout unloads the specified keyboard layout Vkkeyscan for wind oWS an ASCII character in the character set, judging the virtual key and the SHIFT key state end TSQGW (2002-03-14 14:50:00) appendmenu Add a menu item to the specified menus Checkmenuitem check or undo check refers to Menu entry Checkmenuradioitem Specifies that a menu entry is checked as a "radio" item CreateMenu Create a new menu CreatePopupMenu create an empty pop-up menu DeleteMenu Delete the specified menu entry D Estroymenu Delete the specified menu DrawMenuBar the menu for the specified window EnableMenuItem allows or disables the specified menu entry GetMenu Gets the handle of a menu in the window getmenucheckmarkdimensions returns the size of a menu check character Getme Nucontexthelpid gets a menu of Help scene ID Getmenudefaultitem determines which entry in the menu is the default entry Getmenuitemcount returns the number of entries in the menu (menu item) Getmenuitemid returns the The menu ID of the entry at the specified location in the menu Getmenuiteminfo gets (receives) specific information about a menu entry getmenuitemrect loading the screen coordinate information for a specified menu entry in a rectangle getmenustate gets the status of the specified menu item Information about getmenustring Gets the string of 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 of the system menu of the specified window Hilitemenuitem control The highlight state of the 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 inserts a new menu entry Ismenu determines whether the specified handle is a handle to a menu Loadm ENU loads a menu from a specified module or application instance LoadMenuIndirect loads a menu menuitemfrompoint determines which menu entry contains a specified point on the screen Modifymenu change the menu entry Removem  ENU delete the specified menu entry SetMenu Settings Window menu Setmenucontexthelpid set a menu's Help scene ID SetMenuDefaultItem set a menu entry as the default entry SetMenuItemBitmaps Sets a special map to be used in the specified menu entry instead of the standard check mark (√) setmenuiteminfo to set the specified information for a menu entry TrackPopupMenu display a popup menu anywhere on the screen trackpopupmenue X is similar to TrackPopupMenu, except that it providesA few extra features. The following is a list of the type definitions for menu functions MENUITEMINFO This structure contains information about menu entries 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 arc with a connection arc draw an arc beginpath start a path branch CANCELDC cancel another line thread long time drawing operation Chord draw a chord Clos Eenhmetafile the specified enhanced metafile device scene is closed, and the newly created metafile returns a handle closefigure to a path, close the currently open drawing Closemetafile close the specified metafile device scene, and returns a handle to the newly created metafile copyenhmetafile make a copy of the specified enhanced metafile (copy) Copymetafile make a copy of the specified (standard) metafile createbrushindirect in a logbrush Based on the data structure create a brush createdibpatternbrush create a brush with a device-independent bitmap to specify a brush style (pattern) createenhmetafile Create an enhanced metafile device scene Createhatchb   Rush Create a brush with a shaded pattern createmetafile create a metafile device scene 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 creates a brush with a solid color deleteenhmetafile deletes the specified enhanced metafile deletemetafile delete the specified Metafile DeleteObject Delete GDI objects, all system resources used by the object are freed Drawedge a rectangle border with the specified style Drawescape Escape function sends data directly to the display device driver  DrawFocusRect draws a focus rectangle Drawframecontrol depicts a standard control drawstate applies a variety of effects to an image or drawing operation Ellipse depicts an ellipse, which is stopped by the specified rectangle around Endpath Define a path enumenhmetafile for an enhanced metafile, enumerate the individual metafile records enummetafile as a standard Windows Metafile enumeration of separate metafile records EnumObjects enumeration can be accompanied by a specified device scene to make it Use brushes and brushes extcreatepen Create an extension brush (decoration or geometry) Extfloodfill in the specified device scene, fill an area with the currently selected brush FillPath close any open shapes in the path and fill them with the current brush Fillrec T fills a rectangle with the specified brush Flattenpath all curves in a path into segments FloodFill fills an area with the currently selected brush in the specified device scene Framerect draws a border around a rectangle with the specified brush Gdicomm ENT Add a comment message for the specified enhanced metafile device scene Gdiflush perform any pending drawing operations Gdigetbatchlimit determine how many GDI drawing commands are in the queue Gdisetbatchlimit specify how many GDI drawing commands can  Enough to get into the queue. Getarcdirection Draw arc, judge the current drawing direction GetBkColor get the current background color of the specified device scene getbkmode for the specified device scene, get the current background fill mode Getbrushorgex Determines the beginning of the currently selected brush in the specified device scene Getcurrentobject gets the current selected object of the specified type Getcurrentpositionex the current brush position in the specified device scene getenhmetafile gets the one contained in the disk file Metafile handle for an enhanced metafile getenhmetafilebits copy the specified enhanced metafile into a memory buffer getenhmetafiledescription returns a description of an enhanced metafile (getenhmetafilehe Ader meta file header for enhanced metafile GeTenhmetafilepaletteentries gets the full or partial palette of the enhanced metafile getmetafile gets the metafile handle for the metafile contained in a disk file Getmetafilebitsex Copies the specified metafile to a memory buffer getmiterlimit gets the slope limit (Miter) setting of the device scene getnearestcolor a solid color closest to the specified color, based on the device's display capability Getobjectapi gets the specified pair A structure like the description Getobjecttype determines the type of GDI object referenced by the specified handle GetPath obtains a series of data defined on the current path GetPixel the RGB value of one pixel in the specified device scene getpolyfillmod    For the specified device scene, get the polygon fill mode GetROP2 for the specified device scene, get the current drawing mode Getstockobject get an intrinsic object (Stock) Getsyscolorbrush get a brush for any standard system color   Getwinmetafilebits converts an enhanced metafile into a standard Windows metafile by filling in a buffer with data for standard metafile invertrect inverts the specified rectangle in a device scene by reversing the value of each pixel    LineDDA enumerates all points in a specified segment LineTo draws a line from the current brush, connecting to a specified point

  

Delphi Common API functions

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.