Export (0) Print
Expand All

SCF_MENUACTION_EVENT Structure 

Occurs when the user selects an item on a menu page that causes a navigation to any page type other than a context menu.

The SCF_MENUACTION_EVENT Structure is identified by the enumeration value SCF_MENUACTION_EVENT Structure, which is passed as the value of the in_dwEventId parameter of the ISideShowEvents::ApplicationEvent Method.

Event Parameters:

The following table describes the parameters associated with the SCF_MENUACTION_EVENT Structure.

Parameter

Type

Description

PreviousPage

CONTENT_ID

The content identifier of the menu page on which the item was selected.

TargetPage

CONTENT_ID

The content identifier of the page to which the user is navigating.

Button

UINT32

The enumeration value that represents the button that the user pressed to select the item.

ItemId

UINT32

The identifier value associated with the selected menu item.

C++ Parameter Structure:

The following C++ structure is defined in the file WindowsSideShow.h and shows how the parameters of the SCF_MENUACTION_EVENT Structure are packaged to be passed to the ApplicationEvent method of the client-implemented ISideShowEvents interface. When this method is called, its in_pbEventData parameter points to a structure of the following form and its in_dwEventSize parameter is set to the size of this structure.

typedef struct tagSCF_MENUACTION_EVENT
{
    CONTENT_ID  PreviousPage;
    CONTENT_ID  TargetPage;
    UINT32      Button;
    UINT32      ItemId;
} SCF_MENUACTION_EVENT, *PSCF_MENUACTION_EVENT;

Show:
© 2015 Microsoft