// This goes in \wx\src\msw\wx_win.cpp as of version 1.66B and
// replaces the existing function of the same name and enables
// a wxPanel to properly pass on key presses up the derivation
// chain...

BOOL wxWnd::ProcessMessage(MSG* pMsg)
{
  if (!wx_window || !handle)
    return FALSE;
  else
  {
     if (!wx_window->GetUserEditMode() && wx_window->IsKindOf(CLASSINFO(wxPanel)))
       return ::IsDialogMessage(handle, pMsg);
    else
      return FALSE;
  }
}

