In one of my programs I am writing, I have to indentify whether the top dialog on screen is modeless or not. I have the HWND of the window. No MFC involved here. I need to do this using only Win32 API. Is there any way to do this. the modeless dialog can have any size and style(With or without Caption Bars etc). Suggestions regarding this would be greatly appreciated.