Mercurial > hg > octave-avbm
changeset 13875:5336db83b935 gui
[Win32] Force hiding console window.
* src/terminal/win32/QConsole.cpp (QConsolePrivate::QConsolePrivate):
Force hiding the console window, in case it wasn't created hidden.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 17 Nov 2011 09:30:29 +0000 |
parents | bdad80f28d5c |
children | e3066c972c6a |
files | gui/src/terminal/win32/QConsole.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/terminal/win32/QConsole.cpp +++ b/gui/src/terminal/win32/QConsole.cpp @@ -263,6 +263,9 @@ m_stdOut = hStdOut; m_consoleWindow = GetConsoleWindow (); + // In case the console window hasn't been created hidden... + ShowWindow (m_consoleWindow, SW_HIDE); + CONSOLE_SCREEN_BUFFER_INFO sbi; GetConsoleScreenBufferInfo (hStdOut, &sbi);