2014-01-16 103 views

回答

-1

你可以搜索你通过这个代码片段与systemCreateProcess推出真正的控制台窗口:

HWND hCmd = ::FindWindow(_T("ConsoleWindowClass"), _T("aa")); // "aa" is the name/title of the window 
if (hCmd != NULL) { 
    // Set new parent 
    // hParent is the handle to the new parent window (a dockable window) 
    ::SetParent(hCmd, hParent); 
    // TODO: set child's window style to your liking... 
} 
0

那么有Open Command Line作为VS扩展,但遗憾的是它并没有停靠的命令提示符下,所以它只是你的一半。

相关问题