4. Printing functions of Apis
Abortdoc cancels printing of a document
Abortprinter deletes the buffer file associated with a printer.
Addform adds a new form to the printer form List
Addjob is used to obtain a valid path name to create a background print file for the job. It also assigns a job number to the job.
Addmonitor adds a printer monitor to the System
Addport starts the "add Port" dialog box, allowing you to add a new port to the list of available system ports
Addprinter adds a new printer to the System
Addprinterconnection connects to the specified printer
Addprinterdriver adds a print driver for the specified system
Addprintprocessor adds a print processor to the specified system
Addprintprovidor adds a printing vendor to the System
Advanceddocumentproperties Enable Printer document Settings dialog box
Closeprinter closes an opened printer object
Configureport starts a port configuration dialog box for the specified port.
Connecttoprinterdlg start the printer connection dialog box and use it to connect to a printer that accesses the network
Deleteform: delete a form from the list of available printer forms
Deletemonitor deletes the specified print monitor.
Deleteport starts the "delete port" dialog box, allowing you to delete a port from the current system
Deleteprinter marks the specified printer as deleted from the system
Deleteprinterconnection Delete the connection to the specified printer
Deleteprinterdriver: delete a printer driver from the system.
Deleteprintprocessor deletes a print processor from the specified system
Deleteprintprovidor deletes a printing vendor from the system
Devicecapabilities use this function to obtain information related to the capabilities of a device.
Documentproperties printer configuration control function
Enddocapi ends a successful print job
Enddocprinter specifies the end of a document at the program level in the background
Endpage uses this function to print a page and prepare a device scenario to print the next page.
Endpageprinter specifies the end of a page in the print job
Enumforms enumerate the forms available for a printer
Enumjobs enumeration print jobs in the queue
Enummonitors enumeration available print monitors
Enumports
Enumprinterdrivers enumeration specifies the printer driver installed in the system
Printer installed in enumprinters enumeration system
Enumprintprocessordatatypes enumerated data types supported by a print processor
Enumprintprocessors enumeration of available print processors in the system
Escape device Control Function
Findcloseprinterchangenotification disable a printer notification object obtained using the findfirstprinterchangenotification Function
Findfirstprinterchangenotification creates a new change notification object so that we can pay attention to various changes in the printer status.
Findnextprinterchangenotification use this function to determine the cause of triggering a printer change notification Signal
Freeprinterpolicyinfo releases a buffer allocated by the findnextprinterchangenotification Function
Getform obtains information related to the specified form.
Getjob obtains information related to a specified job.
Getprinter obtains information related to the specified printer.
Getprinterdata sets registry configuration information for the printer
Getprinterdriver obtains information about the printer driver for the specified printer.
Getprinterdriverdirectory determines the directory of the specified system containing the printer driver
Getprintprocessordirectory determines the directory where the specified system contains the printer processor driver and files
Open the specified printer and obtain the printer handle.
Printermessagebox displays a printer error message box on the system with the specified print job
Printerproperties launch printer Properties dialog box to configure the printer
Readprinter reads data from the printer
Resetdc resetting a device scenario
Resetprinter changes the default data type and document settings of the specified printer
Schedulejob submit a job to print
Setabortproc specifies the address for canceling the function for Windows.
Setform: sets the information for the specified form.
Setjob controls the status of a print job
Setprinter controls the status of a printer
Setprinterdata: Set the Registry configuration of the printer
Startdoc starts a print job
Startdocprinter starts a new document at the background printing level
Call this function before you print a new page on startpage.
Startpageprinter specifies the start of a new page in the print job.
Writeprinter writes data in the sending directory to the printer
5. Text and font functions of Apis
Addfontresource adds a Font Resource in Windows
Createfont creates a logical font with the specified attribute
Createfontindirect creates a logical font with the specified attribute
Createscalablefontresource creates a resource file for a turetype font so that it can be added to Windows using the API function addfontresource.
Drawtext depicts the text in the specified rectangle.
Drawtextex is similar to drawtext, but more functions are added.
Enumfontfamilies lists available fonts of a specified device
Enumfontfamiliesex lists available fonts for a specified device
Enumfonts lists available fonts for a specified device
Extended text descriptor function of exttextout. For more information, see settextalign.
Getaspectratiofilterex uses setmapperflags to require windows to select a grating font that matches the current aspect ratio of the device. This function can be used to determine the aspect ratio.
Getcharabcwidths determines the A-B-C size of one or more characters in the turetype font
Getcharabcwidthsfloat queries the size of the A-B-C for one or more characters in a font
Getcharacterplacement this function is used to learn how to display a string with a given character
Getcharwidth investigates the width of one or more characters in the font.
Getfontdata receives data from a scalable font file.
Getfontlanguageinfo returns the font information of the specified device scenario.
Getglyphoutline: obtains the curve information of a character in the turetype font.
Getkerningpairs
Getoutlinetextmetrics receives detailed information related to the internal features of the turetype font.
Getrasterizercaps: Check whether the system supports scalable fonts.
Gettabbedtextextent determines the range of a string and considers the factors of tabulation site expansion.
Gettextalign receives the current text alignment mark for a device scenario
Gettextcharacterextra determines the current value of the extra Character Spacing
Gettextcharset receives the character set identifier of the font selected for the specified device scenario
Gettextcharsetinfo gets detailed information about the character set of the selected font
Gettextcolor determines the current font color. It is also known as "foreground"
Gettextextentexpoint determines the number of characters in the specified area. It also uses an array to load the range information of each character.
Gettextextentpoint determines the size (range) of a string)
Gettextface obtains the name of a font.
Gettextmetrics obtains information related to the physical font selected for a device scenario.
Graystring depicts a gray string. Windows is usually used to identify the prohibited status.
Polytextout depicts a series of strings
Removefontresource deletes a font resource from windows.
When setmapperflags is used for font ing in Windows, you can use this function to select a grating font that matches the aspect ratio of the target device.
Settextalign sets the text alignment mode and specifies the current location of the device scenario used during text output.
When settextcharacterextra depicts text, it specifies the additional spacing to insert between characters
Settextcolor sets the color of the current text. This color is also called "foreground color"
Settextjustification specifies the extra space occupied by a text line. This function can be used to align the two ends of the text.
Tabbedtextout supports a text plotting function of tabulation sites.
Textout text plotting function
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.
Getmenucheckmarkdimensions 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 inserts a menu entry at the specified position of the menu, and moves 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 sets a specific bitmap so that it can 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.
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.