trail_frog
2017-12-28 01:23:52 UTC
I'm using EnumWindows() function in my application to help identify open windows. Inside of my EnumWindowsProc() implementation, I monitor which windows are open and which applications these windows belong to. It's used for a feature similar to screen capture.
Whenever there is a context menu open, my application can't identify which window/application it belongs to. The context menu has window style WS_EX_TOOLWINDOW and class name "#32768".
For example, if I have InternetExplorer open and I right click on that IE window, I want to have some code in my EnumWindowsProc() implementation that can identify that the context menu is related to the IE window. In other words, I want to detect that the IE window is the window that was right-clicked in order for that context menu to be opened.
Does anyone know if this is possible?
Thanks.
Whenever there is a context menu open, my application can't identify which window/application it belongs to. The context menu has window style WS_EX_TOOLWINDOW and class name "#32768".
For example, if I have InternetExplorer open and I right click on that IE window, I want to have some code in my EnumWindowsProc() implementation that can identify that the context menu is related to the IE window. In other words, I want to detect that the IE window is the window that was right-clicked in order for that context menu to be opened.
Does anyone know if this is possible?
Thanks.