CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    22

    Always NULL in EditBox by SPY++



    Hi, all.


    I need to get the string from EditBox of the other application.

    After I get the window handle of EditBox on the other app,

    I couldn't get the string by GetWidnowText() or replace it by SetWindowText().

    After I checked SPY++, EditBox is always empty even though the string

    exists in Editbox.

    After all, I made the EditBox on my app, I get the same string by GetWindowText

    because I copy and paste the string from other app to my app.


    Even though I got my goal, this is a little frustrated to me.

    Does anyone know smarter soultion of this?


    Thank you in advance.

    -Masaaki Onishi-

  2. #2
    Join Date
    Apr 1999
    Posts
    10

    Re: Always NULL in EditBox by SPY++

    It should help

    char cz[255];
    memset(cz, 0, sizeof(cz));
    ::SendMessage((HWND)0x???<SpyIt>, WM_GETTEXT, (WPARAM)sizeof(cz), (LPARAM)cz);






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured