Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メインウィンドウ上でモーダルダイアログボックスが開いているかどうかを検出することは可能ですか?はいの場合、どのように?
Qt、Mac、Carbonを使用しています。
ありがとうRahul
GetFrontWindowOfClass(kModalWindowClass、true); あなたが探している答えをあなたに与えるべきです。
何か奇妙な(つまりバグのある)ことが起こっていない限り、モーダルウィンドウは、定義上、メインウィンドウよりも高くなります。