Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kill process
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01100688
Message ID:
01100828
Vues:
16
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform