jjzjj

nForeThread

全部标签

c++ - 当我调试方法 AttachThreadInput() 时,Visual Studio 2010 挂起

我有VisualStudio2010UltimateSP1,我的项目基于MFC。当我调试项目的下一个代码时,VisualStudio挂起:CWnd*_window=CWnd::FromHandle(_hwnd_);if(_window){DWORDnForeThread,nAppThread;nForeThread=::GetWindowThreadProcessId(::GetForegroundWindow(),0);nAppThread=GetCurrentThreadId();if(nForeThread!=nAppThread){AttachThreadInput(nFore