1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to get text from windows controll

Discussion in 'Win32' started by Izarf, Sep 3, 2008.

  1. Izarf

    Izarf New Member

    Joined:
    May 11, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    I think this is a simple one:
    how do I extract the "D:\Backup" from the window in focus?

    I see that I get the window handle through HWND GetFocus(VOID);, but how do I access and read the text?

    [​IMG]
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Use GetWindowText API or the same in Win32 Message to get the window text from the handle you get from the call
     
  3. carl1

    carl1 New Member

    Joined:
    Sep 7, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    No, read MSDN to learn basic apis behaviour
     

Share This Page