Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Mar : Anyway to check a WND is not menu?

www.cryer.info
Managed Newsgroup Archive

Anyway to check a WND is not menu?

Subject:Anyway to check a WND is not menu?
Posted by:"Samson Fu" (fusams..@gmail.com)
Date:Fri, 4 Mar 2005 12:18:01

I use GetTopWindow and GetNextWindow to get all visible windows.
But this way will alsoget all Tooltips, Menus and Combo Popups..

I use
- Window Class Name to filter out 'Shell_TrayWnd' and 'Progman'
- Window Style to filter out TTS_ALWAYSTIP, TTS_XXXX

But I don't know how to filter out Menus and Combo Popups. (Because WS_POPUP is not only for popup, but also for many tool-windows,
like Task Manager).

Anybody have idea to get all visible windows, and filter-out all menus and combo popups?

Thanks,
--
Samson Fu

Replies:

www.cryer.info
Managed Newsgroup Archive