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