Thread: handles from title

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    36

    handles from title

    hello

    is it possible to get handles from window titles?
    if yes how would you do it? thanks alot
    Time for TOTAL WAR

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    what sort of handle. HWND try FindWindow() details in your help files.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    36

    ahh

    a handle of a window not a child....in that window.
    thnx
    Time for TOTAL WAR

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    errrrr........

    MSDN
    "The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows . This function does not perform a case-sensitive search
    To search child windows, beginning with a specified child window, use the FindWindowEx function. "

    Set the first param to null and the second to the title you are looking for.

    Any dialog or control within or on a window should be a child of that window.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    36

    It's ok now

    Yeah i 've got it thanks
    Time for TOTAL WAR

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extract Title from plain text file
    By Todd88 in forum C++ Programming
    Replies: 10
    Last Post: 11-21-2008, 09:47 AM
  2. Program Crashing
    By Pressure in forum C Programming
    Replies: 3
    Last Post: 04-18-2005, 10:28 PM
  3. Handles to visible programs
    By Snip in forum Windows Programming
    Replies: 3
    Last Post: 03-26-2005, 08:52 PM
  4. Change Title in a MFC SDI
    By hick.hack in forum Windows Programming
    Replies: 1
    Last Post: 12-15-2003, 04:15 PM
  5. Child window with active (highlighted) title bar: Possible?
    By JasonD in forum Windows Programming
    Replies: 7
    Last Post: 10-16-2003, 06:43 AM