Поделиться через


CWindow::GetWindowThreadID

Извлекает идентификатор потока, который создал указанное окно.

DWORD GetWindowThreadID( ) throw();

Заметки

См. раздел GetWindowThreadProcessID в Windows SDK.

Пример

//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 Class

CWindow::GetWindowProcessID