Thread: find hwnd of certian controls on a window.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155

    find hwnd of certian controls on a window.

    Hey everyone.

    How can I find an element inside of a window of a program? For example, the textarea in notepad.

    I've started off with:
    Code:
    HWND hwnd;
    
    hwnd = FindWindowA ( "notepad", 0 ); //program is in unicode, gotta put the A in front so it'll recognize the quotes.
    Now, how could I find the "Edit" class within the window?

    Thanks,

    Matt
    Last edited by guitarist809; 05-10-2008 at 05:19 PM.
    ~guitarist809~

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 12:17 AM
  2. Button positioning
    By Lionmane in forum Windows Programming
    Replies: 76
    Last Post: 10-21-2005, 05:22 AM
  3. dont want to use all params
    By stallion in forum Windows Programming
    Replies: 2
    Last Post: 02-18-2003, 08:10 AM
  4. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM