Common API functions (6): menu functions

Source: Internet
Author: User
Appendmenu Add a menu item to the specified menu
Checkmenuitem Check or uncheck a specified menu entry
Checkmenuradioitem Specifies that a menu item is selected as a "single choice" item.
Createmenu Create a menu
Createpopupmenu Create an empty pop-up menu
Deletemenu Deletes a specified menu entry.
Destroymenu Deletes a specified menu.
Drawmenubar Redraw a menu for the 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 Obtain the help scenario ID of a menu
Getmenudefaultitem Determine which entry in the menu is the default entry
Getmenuitemcount Return the number of entries (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 related to a menu entry
Getmenuitemrect Load the screen coordinate information of the specified menu bar in a rectangle
Getmenustate Obtains information about the status of a specified menu entry.
Getmenustring Obtains the string of a specified menu entry.
Getsubmenu Gets the handle of a pop-up menu, which is located at the specified position in the menu
Getsystemmenu Obtains the system menu handle of a specified window.
Hilitemenuitem 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 From a specified module or applicationProgramLoad a menu in the instance
Loadmenuindirect Load a menu
Menuitemfrompoint Determines which menu entry contains a specified Vertex on the screen
Modifymenu Change menu entries
Removemenu Deletes a specified menu entry.
Setmenu Set Window Menu
Setmenucontexthelpid Set the help scenario ID of a menu
Setmenudefaultitem Set 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 Set the specified information for a menu entry
Trackpopupmenu Display a pop-up menu anywhere on the screen
Trackpopupmenuex Similar to trackpopupmenu, but it provides additional 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.