我觉得这个很容易谷歌,但我错了.
我只想要一个常规的cmd提示终端窗口作为Visual Studio内的停靠窗口,就像Package Manager控制台一样.但我似乎找不到办法.
可能吗?
egu*_*gur -1
您可以搜索使用以下代码片段启动的真实控制台system
窗口CreateProcess
:
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...
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2024 次 |
最近记录: |