I'm writing an app on Windows 10 using Visual C++ 2017 and wxWidgets 3.1.0. I've noticed that if my app doesn't currently have focus and I try to use the close button on the window's taskbar thumbnail, the close event doesn't get processed until I make that window active.
In the screenshot below, the white title bar color and greyed out text means the window does not currently have focus.
If I do the same thing with apps like Notepad or Command Prompt, the windows close as expected.
Background window not receiving close event (Windows 10) Topic is solved
-
- Experienced Solver
- Posts: 74
- Joined: Sat May 06, 2017 1:40 pm
Re: Background window not receiving close event (Windows 10)
Hi,
Do you observe the same behavior running minimal sample?
Thank you.
Do you observe the same behavior running minimal sample?
Thank you.
-
- Experienced Solver
- Posts: 74
- Joined: Sat May 06, 2017 1:40 pm
Re: Background window not receiving close event (Windows 10)
Yes, I do observe the same behavior with the Minimal sample. I can, however, confirm that the issue does not occur on Windows 7.
Here is the exact version of Windows 10 that I'm using:
Here is the exact version of Windows 10 that I'm using:
Dave F.
Re: Background window not receiving close event (Windows 10)
Hi.
Is it the same as
viewtopic.php?f=1&t=42432&p=172068#p172068
In the on-close event handler I did a work-around by
/Torben.
Is it the same as
viewtopic.php?f=1&t=42432&p=172068#p172068
In the on-close event handler I did a work-around by
Code: Select all
if (!IsActive()) wxQueueEvent(this, new wxActivateEvent());