## wxContextMenuEvent

This class is used for context menu events, sent to give the application a chance to show a context (popup) menu.

Derived from

wxCommandEvent
wxEvent
wxObject

Include files

<wx/event.h>

Event table macros

To process a menu event, use these event handler macros to direct input to member functions that take a wxContextMenuEvent argument.

EVT_CONTEXT_MENU(func) | A right click (or other context menu command depending on platform) has been detected.

See also

Command events,
Event handling overview

Members

wxContextMenuEvent::wxContextMenuEvent
wxContextMenuEvent::GetPosition
wxContextMenuEvent::SetPosition

### wxContextMenuEvent::wxContextMenuEvent

wxContextMenuEvent(WXTYPE id = 0, int id = 0, const wxPoint& pos=wxDefaultPosition)

Constructor.

### wxContextMenuEvent::GetPosition

wxPoint GetPosition() const

Returns the position at which the menu should be shown.

### wxContextMenuEvent::SetPosition

void SetPosition(const wxPoint& point)

Sets the position at which the menu should be shown.