Also, I have another question - Can we create a tool box button using vc++? sample please.
What do you mean by "external window", exactly? You can use the Acrobat SDK forum here for questions about plugins and the Acrobat SDK: Acrobat SDK
There's no such thing available using JS.
Retrieving data ...