Thread: Hwnd

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    4

    Hwnd

    Im just curious, how do i get the HWND of another window?

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows.

    Code:
    HWND FindWindow(
    
        LPCTSTR lpClassName,	// pointer to class name
        LPCTSTR lpWindowName 	// pointer to window name
       );
    Hope this helps
    "There are three kinds of people in the world...
    Those that can count and those that can't."

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 handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. My first "real" windows app
    By JoshR in forum Windows Programming
    Replies: 2
    Last Post: 07-28-2005, 07:40 AM
  4. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 07:48 PM