Zack.Net
September 19th, 2007, 05:35 AM
hi, does anyone know how to obtain text from an external application's editor. I've used some Pinvoke functions to obtain the main window handle, then enumChildWnd to find the relevant class handle that the editor derives from. Now my question is. now that I've got the handle.. what do i need to do to read the text from the editor. I'm not trying to get any Window handle by using the windowtext function.. Ideally i would want to read all text or be able to read by line where the caret is located. If anyone could point me in the right direction I would appreciate it.
The App I'm hooking into is SQL Server Management Studio, the editor used by SQmgntStudio is called VsTextEditorPane..
Is there some kinda SendMessage param one sends or ?..
Thanx in advance
The App I'm hooking into is SQL Server Management Studio, the editor used by SQmgntStudio is called VsTextEditorPane..
Is there some kinda SendMessage param one sends or ?..
Thanx in advance