开发者

Is it possible to detect that whether any modal dialog box is open over main window?

开发者 https://www.devze.com 2022-12-22 21:45 出处:网络
Is it possible to detect that whether any modal d开发者_如何学Goialog box is open over main window? If yes then how?

Is it possible to detect that whether any modal d开发者_如何学Goialog box is open over main window? If yes then how?

I am using Qt, Mac, Carbon.

Thanks Rahul


GetFrontWindowOfClass( kModalWindowClass, true ); should give you the answer you are looking for.

Unless something strange (i.e. buggy) is going on, a modal windows, by definition, will be higher then the main window.

0

精彩评论

暂无评论...
验证码 换一张
取 消