Share via


SHMENUBARINFO (Windows Embedded CE 6.0)

1/6/2010

This structure sets members for the SHCreateMenuBar function.

Syntax

typedef struct tagSHMENUBARINFO {
  DWORD cbSize;
  HWND hwndParent;
  DWORD dwFlags;
  UINT nToolBarId;
  HINSTANCE hInstRes;
  int nBmpId;
  int cBmpImages;
  HWND hwndMB;
  COLORREF clrBk;
} SHMENUBARINFO, *PSHMENUBARINFO;

Members

  • cbSize
    Size of SHMENUBARINFO structure.
  • hwndParent
    Handle to the window to control the command bar window.
  • dwFlags
    Specifies the properties of the menu bar. The following table shows the possible values for this member.

    Flag Description

    SHCMBF_COLORBK

    Sets the background color value for the menu bar.

    SHCMBF_EMPTYBAR

    Creates an empty menu bar.

    SHCMBF_HIDDEN

    Creates the menu bar initially hidden.

    SHCMBF_HMENU

    Specifies an hmenu value for a resource rather than for toolbar information.

  • nToolBarId
    If SHCMBF_HMENU is not set, nToolBarId is a toolbar identifier used to load the resource from the instance specified by hInstRes.

    If SHCMBF_HMENU is set, nToolBarId is a menu identifier used to load the resource from the instance specified by hInstRes. Additionally, if this identifier is used for soft key creation and the HIWORD is zero, it directly represents an hmenu already loaded in memory.

  • hInstRes
    Instance handle that controls the resources.
  • nBmpId
    Bitmap identifier used to load the bitmap resource for buttons with images from the instance specified by hInstRes. This bitmap should have the same format as bitmaps used in ImageList functions. This member should be set to NULL if the creation of soft keys is intentional.
  • cBmpImages
    Number of images in the bitmap referred to by nBmpId. This member should be set to NULL if the creation of soft keys is intentional.
  • hwndMB
    Window handle to the menu bar.
  • clrBk
    Defines the background color of the menu bar, excluding the software input panel (SIP).

Requirements

Header aygshell.h
Library aygshell.lib
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

AYGShell Structures