void MyFrame::OnMouseDoubleClick(wxMouseEvent& event) { if (event.Button(wxMOUSE_BTN_LEFT)) { // Do something when left mouse button is double clicked wxClientDC dc(this); dc.SetPen(*wxRED_PEN); dc.SetBrush(*wxRED_BRUSH); dc.DrawCircle(event.GetPosition(), 10); } }In this example, when the user double clicks the left mouse button, a red circle is drawn at the position of the mouse cursor. The wxMouseEvent ButtonDClick event is part of the wxWidgets package library.