title: Proper way to get a wxWidgets pop-up window to dismis when the parent gets clicked?
body: <p>Preface: wxWidgets 2.8.10 project on Windows.</p>
  
  <p>I have a main application window (controls in a frame). If the user presses a hotkey, a pop-up window (implemented as a wxDialog) shows centered within the parent.</p>
  
  <p>The behavior I want is if the user clicks outside of the pop-up window, on to the parent window, then the pop-up will dismiss, ala EndModal(wxID_CANCEL). </p>
  
  <p>But if the user clicks outside the pop-up into another app, the pop-up should stay there.</p>
  
  <p>Any thoughts?</p>