How can I ensure that a wxFrame is brought to the foreground?

老子叫甜甜 提交于 2019-12-23 09:43:03

问题


I have a wxFrame that receives events. Whenever an event comes in, I want the frame to be brought to the foreground.

I'm currently using:

my_frame->SetFocus();

But that doesn't seem to work for minimized frames. How can I set the frame as the active window and bring it to the front?

Alternatively, is there a method that flashes the title?


回答1:


I don't have a useable example but have you ever tried

my_frame->Raise()

It raises the window to the top of the window hierarchy.



来源:https://stackoverflow.com/questions/2550660/how-can-i-ensure-that-a-wxframe-is-brought-to-the-foreground

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!