CWindow::GetWindowProcessID

检索创建窗口操作的标识符。

DWORD GetWindowProcessID( ) throw();

备注

在参见 Windows SDK的 GetWindowThreadProcessID

示例

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

CWindow myWindow;
myWindow.Attach(hWnd);
DWORD dwID = myWindow.GetWindowProcessID();

要求

Header: atlwin.h

请参见

参考

CWindow选件类

CWindow::GetWindowThreadID