다음을 통해 공유


SHMENUBARINFO (Windows CE 5.0)

Send Feedback

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_HIDESIPBUTTON Creates the menu bar with no Input Panel button.
    Note   This flag is supported only for Windows Mobile.
    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

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: aygshell.h
Library: aygshell.lib

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.