Compartir a través de


CWindow::GetWindowThreadID

Recupera el identificador del subproceso que creó la ventana especificada.

DWORD GetWindowThreadID( ) throw();

Comentarios

Vea GetWindowThreadProcessID en Windows SDK.

Ejemplo

//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();

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow

CWindow::GetWindowProcessID