CWindow::GetWindowThreadID

DWORD GetWindowThreadID( );

See GetWindowThreadProcessID in the Win32 SDK.

Remarks

Retrieves the identifier of the thread that created the specified window.

Example

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::GetWindowThreadID() to retrieve the id of the thread 
//that created the window

CWindow myWindow;
myWindow.Attach(hWndFoo);
DWORD dwID = myWindow.GetWindowThreadID();

CWindow OverviewClass Members

See Also   CWindow::GetWindowProcessID