2014-01-16 86 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擴展,但遺憾的是它並沒有停靠的命令提示符下,所以它只是你的一半。

相關問題