Copy link to clipboard
Copied
Hi,
tell me, please, how to get the window handle of the Adobe Acrobat DC application?
Thanks.
Copy link to clipboard
Copied
You can download Process Explorer from Micrososft Sysinternals
See here: https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
This tool is really good to see a list of windows handles and all registry processes associated with an opened program.
I don't think there is a particular handle that will remain unchanged nor not reused by other instances of a process once the main process has closed; so this tool is very handy.
Copy link to clipboard
Copied
Thanks for the answer, but I needed to get the window handle of the Adobe Acrobat DC application from Visual C ++, and not from an external application. I found a solution to this problem.
If a modal window opens, the handle is obtained as follows:
HWND hwnd = WinAppGetModalParent (AVAppGetActiveDoc ());
If a modeless window opens, the handle is obtained as follows:
HWND hwnd1 = WinAppGetModelessParent ();
Anyway, thanks for wanting to help.
Copy link to clipboard
Copied
These might not be the window handle of the application - but they are certainly the right window handles to use for window parents. Be sure to test your app when more than one Acrobat window is open (each one will have a handle).