Hwnd

This is a discussion on Hwnd within the Windows Programming forums, part of the Platform Specific Boards category; Im just curious, how do i get the HWND of another window?...

  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, 05: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, 06:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21