Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kill process
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01100688
Message ID:
01100828
Views:
15
Mark,

It is possible to hook to Adobe Reader 7 main menu from VFP. Through this hook VFP program can enumerate opened Acrobat documents (windows), close any document or all documents, close the Acrobat application.

The code requires membership, but comments around it may give you an idea how it works.

Accessing Adobe Reader 7.0 main menu from VFP application
http://www.news2news.com/vfp/?example=495

To create a virtual click on an item from Acrobat main menu API function SendMessage is used:
= SendMessage(hAcrobatWindow, WM_COMMAND, m.nCommand, 0)
hAcrobatWindow is Acrobat main window handle.
nCommand is menu item id, for example nCommand=6026 closes the Acrobat.
Previous
Reply
Map
View

Click here to load this message in the networking platform