How to minimise Acrobat Exchange.
This code sample is posted here for the general benefit of the PDF development community. Attribution and usage guidelines are as noted in the code source; please respect the wishes of the author when using this code.
[snip - declarations etc...]
' Get hWnd to Acrobat Exchange
' Get handle to desktop window
hWndDesktop = GetDesktopWindow()
' Find handle to acrobat exchange window
hWndExchange = GetTopWindow(hWndDesktop)
' Check title bar of window to determine if it is the correct one
AcrobatTitle = String(16, 0)
GetWindowText hWndExchange, AcrobatTitle, 17
' Cycle through all top level windows until Acrobat Exchange window is found
While AcrobatTitle <> 'Acrobat Exchange'
hWndExchange = GetNextWindow(hWndExchange, GW_HWNDNEXT)
If hWndExchange = 0 Then
hWndExchange = GetTopWindow(hWndDesktop)
End If
GetWindowText hWndExchange, AcrobatTitle, 17
Wend
' Minimise the Acrobat Exchange window
SendMessage hWndExchange, WM_SYSCOMMAND, SC_MINIMIZE, 0