C ++中最热门的属性 [英] Top Most Property in C++

查看:88
本文介绍了C ++中最热门的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关最高资产的问题.我将其设置为true.当我启动我的应用程序时,我可以说Internet Explorer最大化打开了.我没有从我的应用程序中看到该表格.我必须最小化或减少Internet Explorer才能看到我的表单.我的问题是,因为我将其设置为最高",所以最高"!

A question about the top most property. I have it set to true. When I start my app and I have lets say Internet explorer opened maxed. I don''t see the form from my app. I have to min or reduce Internet Explorer to see my form. My question is since I have it set to Top Most whoudn''t it be, well Top Most! Thanks.

推荐答案

在Windows 2000的某个地方,Microsoft将"TopMost"的定义从在每个应用程序的Windows之上"更改为在此之上".应用程序的Windows".

所做的更改是为了避免一个应用程序弹出窗口并从另一个应用程序窃取键盘焦点的情况.通常,窃取焦点会使认为自己在一个窗口中键入而实际上在另一个窗口中键入的用户感到烦恼.如果烦恼还不够,那么恶意申请也有机会做一些顽皮的事情.

因此,不,您不能在其他所有人的顶部弹出一个窗口.如果尝试尝试,最好的结果是应用程序的任务栏图标会闪烁"几次,通知用户您的应用程序正在引起他们的关注.
Somewhere around Windows 2000, Microsoft changed the definition of "TopMost" from "On Top of Every Application''s Windows" to "On Top of This Application''s Windows".

The change was to avoid conditions where one application popups up a window and steals keyboard focus from another application. Generally stealing focus caused annoyance to the user who thought they were typing in one window when, in fact, they were typing in another. If annoyance were not enough, there could also be an opportunity for a malicous application to do something naughty.

So, no, you cannot popup a window on top of everybody else''s. The best you''ll see happen if you try is that the taskbar icon for your application will "flash" a few times, informing the user that your application is asking for their attention.


这篇关于C ++中最热门的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆