Scan windows that control the display of dialogs on

I have a program that uses multiple monitors. The second monitor displays a special visualization. At some point, the program uses the functions of the Windows shell to send files to the trash. However, when this happens, a delete confirmation dialog appears on top of my visualization. This is especially problematic, because when the mouse is on the second monitor, my program uses mouse hooks to capture the entire mouse input, so the user cannot even click on the confirmation dialog.

Is there any way to tell Windows to only place dialog boxes on a particular display?

I use python though, if I need to call C WinAPI functions that shouldn't be a problem

+5
source share
1 answer

What function do you use to send files to the trash? if you use SHFileOperation , you can pass the parent HWND. perhaps make the WS_EX_TOOLWINDOW window invisible on another monitor.

I would expect the API, viewing this window as a parent, to center relative to this window, but I have not tried it.

Windows, , , "" . , rcWork GetMonitorInfo, . , , "" , , , , , ...

, , , - , , , , .

+2

All Articles