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
精彩评论