Howdy - I'm trying to get some info from another window. In the past, I have
succesfully used code like the following to get the text from a control on
another window (when the class type is RICHEDIT). However, I have
encountered a window control whose class is "AfxWnd42s", and using
WM_SENDMESSAGE ( ... GETTEXT...) is NOT working. I have verified w/ Spy++
"Find Window" tool and the debugger that the window handle I am obtaining is
correct.
Can someone tell me another method so that I can get the text from an
"AfxWnd42s" control? Please let me know - thanks!
My email:
ke************@hotmail.com_removeAllofThisTrailingText
NoSpAm****removeAllofThisTrailingText
Code snippet that works for "RICHEDIT", but not for "AfxWnd42s":
IntPtr the_one = Win32.FindWindowEx(WinHnd, 0, "AfxWnd42s",
null);
StringBuilder formDetails = new StringBuilder( 65000 );
Int32 result1 = Win32.SendMessage(the_one, Win32.WM_GETTEXT,
65000, formDetails);