You need to specify in the STARTUPINFO structure that you want your console window to be initially minimized.
You need to specify in the STARTUPINFO structure that you want your console window to be initially minimized: ZeroMemory(&si); si. Cb = sizeof(STARTUPINFO); si. DwFlags = STARTF_USESHOWWINDOW; si.
WShowWindow = SW_MINIMIZE.
That only works on native Windows apps, not console mode apps. – Hans Passant Dec 7 '10 at 19:19 @Hans, really? The documentation has a special case for "GUI processes", so what's the general case if console apps are not supported?
:) – Frédéric Hamidi Dec 7 '10 at 19:22 Not sure what you are asking. The value is passed to WinMain, nCmdShow argument. Console mode apps don't have a WinMain.
Lots of GUI apps ignore it as well. – Hans Passant Dec 7 '10 at 19:27 Actually, it worked on both a native console app and a Qt Windows app. Thanks.
– photo_tom Dec 7 '10 at 19:28 @Hans, the special case in the doc is: For GUI processes, the first time ShowWindow is called, its nCmdShow parameter is ignored. So I don't think they have a choice (unless they never call ShowWindow()). Nothing is said about the value being passed to WinMain(), it's only supposed to be used when ShowWindow() is called with SW_SHOWDEFAULT.
– Frédéric Hamidi Dec 7 '10 at 19:31.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.