Click here to Skip to main content
15,888,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have tried get texts from vs2008 or vs other versions.
For test, I used spy++ and got the notepad's handle values.
Sending WM_GETTEXT to it, I could get correct texts.
but using it to vs2008's text panels of which class name is "vsTextEditPane"
returned nothing. WM_GETTEXTLENGTH also returned zero.
I noticed "vsTextEditPane" control is custom control and WM_ and EM_ is
just for normal control.
I found the way getting it in this site but I can't understand it.
http://www.gwmicro.com/mediawiki/index.php/Accessing_Text_in_a_Custom_Control
my lang is c#

Please help.
Posted
Updated 3-Jul-11 16:55pm
v3

1 solution

The fact that it's a custom control should be irrelevant, if it's still derived from a standard control. If it's not, if it's choosing it's own method to write text, then I'd imagine you'd have trouble finding anything, as it will be written to not respond to these messages.

The example you found, seems to be using VBscript, in immediate mode. It probably doesn't really translate to you running code outside of visual studio, in any language. What are you trying to do ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900