FIX: [STUDIO-2186] hide PopupWindow on alt-tab

Change-Id: Ie1bffdd9ace2c6e05979743da9f75ca2c1e87cf4
(cherry picked from commit 7ddaf5260df19c76fca82e525caca26e55732fa9)
This commit is contained in:
chunmao.guo 2023-02-13 14:06:39 +08:00 committed by Lane.Wei
parent 5f69f4c016
commit a03dc779b6
23 changed files with 143 additions and 70 deletions

View file

@ -1048,9 +1048,9 @@ void BlinkingBitmap::blink()
}
wxIMPLEMENT_CLASS(ImageTransientPopup,wxPopupTransientWindow);
wxIMPLEMENT_CLASS(ImageTransientPopup,PopupWindow);
wxBEGIN_EVENT_TABLE(ImageTransientPopup,wxPopupTransientWindow)
wxBEGIN_EVENT_TABLE(ImageTransientPopup,PopupWindow)
EVT_MOUSE_EVENTS( ImageTransientPopup::OnMouse )
EVT_SIZE( ImageTransientPopup::OnSize )
EVT_SET_FOCUS( ImageTransientPopup::OnSetFocus )
@ -1058,7 +1058,7 @@ wxBEGIN_EVENT_TABLE(ImageTransientPopup,wxPopupTransientWindow)
wxEND_EVENT_TABLE()
ImageTransientPopup::ImageTransientPopup( wxWindow *parent, bool scrolled, wxBitmap bmp)
:wxPopupTransientWindow( parent,
:PopupWindow( parent,
wxBORDER_NONE |
wxPU_CONTAINS_CONTROLS )
{
@ -1115,21 +1115,21 @@ void ImageTransientPopup::SetImage(wxBitmap bmp)
void ImageTransientPopup::Popup(wxWindow* WXUNUSED(focus))
{
wxPopupTransientWindow::Popup();
PopupWindow::Popup();
}
void ImageTransientPopup::OnDismiss()
{
wxPopupTransientWindow::OnDismiss();
PopupWindow::OnDismiss();
}
bool ImageTransientPopup::ProcessLeftDown(wxMouseEvent& event)
{
return wxPopupTransientWindow::ProcessLeftDown(event);
return PopupWindow::ProcessLeftDown(event);
}
bool ImageTransientPopup::Show( bool show )
{
return wxPopupTransientWindow::Show(show);
return PopupWindow::Show(show);
}
void ImageTransientPopup::OnSize(wxSizeEvent &event)