CWindow::GetWindowThreadID

检索创建指定线程的窗口的标识符。

DWORD GetWindowThreadID( ) throw();

备注

在参见 Windows SDK的 GetWindowThreadProcessID

示例

//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(hWnd);
DWORD dwID = myWindow.GetWindowThreadID();

要求

Header: atlwin.h

请参见

参考

CWindow选件类

CWindow::GetWindowProcessID