+ // clicks, so we have to synthetize the second one. First
+ // generate wxEVT_?_DOWN:
+ event.SetEventType(type);
+ win->GetEventHandler()->ProcessEvent(event);
+
+ // ...followed by wxEVT_?_UP:
+ if ( e->message & EVT_LEFTBMASK )
+ type = wxEVT_LEFT_UP;
+ else if ( e->message & EVT_MIDDLEBMASK )
+ type = wxEVT_MIDDLE_UP;
+ else if ( e->message & EVT_RIGHTBMASK )
+ type = wxEVT_RIGHT_UP;