我怎样才能确保一个wxFrame被带到前台?

编程入门 行业动态 更新时间:2024-10-27 15:22:36
本文介绍了我怎样才能确保一个wxFrame被带到前台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个接收事件的 wxFrame 。每当一个事件进来,我想框架被带到前台。

我目前正在使用:

my_frame-> SetFocus的();

但是,这似乎并不适用于最小化帧。如何将框架设置为活动窗口并将其置于前面?

另外,是否有一种闪烁标题的方法?

解决方案

我没有一个可用的例子,但你有没有尝试过?b $ b

my_frame-> Raise()

它将窗口拉到顶部窗口层次结构。

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?

解决方案

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.

更多推荐

我怎样才能确保一个wxFrame被带到前台?

本文发布于:2023-06-10 05:46:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/608250.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:前台   wxFrame

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!