开发者

How do you tell if a window is modal or mdi window?

Given an window handle, is it possible to tell if the window is modal, or maybe an mdi开发者_如何学JAVA child window?


The following will return true if and only if the window is a MDI child window:

GetWindowLong(Handle, GWL_EXTSTYLE) and WS_EX_MDICHILD <> 0


It would also appear that if a window doesn't have the WS_CHILD style then it is a dialog,modal window, or mdi child.

GetWindowLong(Handle, STYLE) and WS_CHILD != WS_CHILD
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜