Partager via


PH_MENU_SCREEN_PARAMETERS (Windows Embedded CE 6.0)

1/6/2010

Structure used in conjunction with the PHMenuScreen control.

Syntax

typedef struct _PH_MENU_SCREEN_PARAMETERS
{
    DWORD StructSize;               
    DWORD Flags;                    
    HWND Owner;                     
    UINT Id;                        
    HINSTANCE Instance;             
    const WCHAR* pTitle;            
    PHMS_ITEM* pMenuScreenItems;
    int ItemCount;
    UINT NotificationMsg;           
    union{
        UINT SelectedId;         
        HWND Dialog;             
    } result;
} PH_MENU_SCREEN_PARAMETERS;

Members

  • StructSize
    [in] Struct size in bytes.
  • Flags
    [in] VDF_xxx flags.
  • Owner
    [in] Owner of the menu screen.
  • Id
    [in] Identifier of the dialog window.
  • Instance
    [in] Handle to the instance containing any custom resources.
  • pTitle
    [in] Title of the dialog.
  • pMenuScreenItems
    [in] Pointer to the array of menu items, each in a PHMS_ITEM structure.
  • ItemCount
    [in] Number of menu items in array.
  • NotificationMsg
    [in] If the dialog is modeless, this message is sent to the owner window prior to the dialog closing. The WPARAM contains the selected ID (or PHMENU_CANCELLED). The LPARAM contains the HWND of the dialog.
  • SelectedId
    [out] Identifier of the item selected by user if modal dialog.
  • Dialog
    [out] Handle to the window of the modeless dialog created.

Remarks

Note

This documentation applies to functionality implemented in sample code for PhCommon. For more information, see PhCommon Reference.

If the result dialog is non-modal, the caller is responsible for terminating the dialog with a call to CloseWindow().

Requirements

Header controldefinitions.h
Library PhCommon.dll
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

PhCommon Structures
PhCommon Reference
PhCommon Dialog Flags
PHMS_ITEM