MiniGUI API Reference (MiniGUI-Threads)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Fields
_MENUITEMINFO Struct Reference

#include <window.h>

Data Fields

UINT mask
 
UINT type
 
UINT state
 
LINT id
 
HMENU hsubmenu
 
PBITMAP uncheckedbmp
 
PBITMAP checkedbmp
 
DWORD itemdata
 
DWORD typedata
 
UINT cch
 

Detailed Description

Structure defines a menu item

Definition at line 10812 of file window.h.

Field Documentation

◆ cch

UINT cch

Used by GetMenuItemInfo function to indicate the maximal length of the string

Definition at line 10899 of file window.h.

◆ checkedbmp

PBITMAP checkedbmp

The pointer to a BITMAP object used for checked bitmap menu item

Definition at line 10887 of file window.h.

◆ hsubmenu

HMENU hsubmenu

The handle to the sub-menu if this menu contains a sub menu

Definition at line 10881 of file window.h.

◆ id

LINT id

The identifier of the menu item.

Note
The type changed from int to LINT since v3.2.

Definition at line 10878 of file window.h.

◆ itemdata

DWORD itemdata

The private data attached to the menu item

Definition at line 10890 of file window.h.

◆ mask

UINT mask

Used by GetMenuItemInfo and SetMenuItemInfo functions, can be OR'ed with the following values:

  • MIIM_STATE
    Get/set the state of the menu item.
  • MIIM_ID
    Get/set the identifier of the menu item.
  • MIIM_SUBMENU
    Get/set the sub-menu of the menu item.
  • MIIM_CHECKMARKS
    Get/set the check/uncheck bitmap.
  • MIIM_TYPE
    Get/set the type and the type data of the menu item.
  • MIIM_DATA
    Get/set the item data of the menu item.

Definition at line 10830 of file window.h.

◆ state

UINT state

State of the menu item, can be one of the following values:

  • MFS_GRAYED
    The menu item is disabled.
  • MFS_DISABLED
    The menu item is disabled.
  • MFS_CHECKED
    The menu item is checked.
  • MFS_ENABLED
    The menu item is enabled.
  • MFS_UNCHECKED
    The menu item is unchecked.

Definition at line 10873 of file window.h.

◆ type

UINT type

Type of menu item, can be one of the following values:

  • MFT_STRING
    A normal string menu item.
  • MFT_BITMAP
    A bitmap menu item. When the menu item is this type, the member typedata will be the pointer to the normal BITMAP object, the member uncheckedbmp will be the pointer to the hilighted BITMAP object, the member checkedbmp will be the pointer to the checked BITMAP object.
  • MFT_BMPSTRING
    A bitmap menu item followed by a string. When the menu item is this type, the member typedata will be the pointer to the text string, the member uncheckedbmp will be the pointer to the normal BITMAP object, and the member checkedbmp will be the pointer to the checked BITMAP object.
  • MFT_SEPARATOR
    A separator in menu.
  • MFT_RADIOCHECK
    A normal string with a radio check mark.
  • MFT_MARKCHECK
    A normal string with a check box mark.

Definition at line 10858 of file window.h.

◆ typedata

DWORD typedata

The data of this menu item, used to pass the string or the pointer to the BITMAP object of the menu item

Definition at line 10893 of file window.h.

◆ uncheckedbmp

PBITMAP uncheckedbmp

The pointer to a BITMAP object used for unchecked/highlited bitmap menu item

Definition at line 10884 of file window.h.


The documentation for this struct was generated from the following file: