win32 console question

  • Thread starter Thread starter Deleted member 61728
  • Start date Start date

Deleted member 61728

Deleted member 61728

Hi how would I make a win32 console app window hide at runtime and only show in task manager and nowhere else ?

Im using dev c++ compiler btw!

If someone could post a code snippet or post a link about this I would be very grateful. :)


thanks
 
I am not sure how you would do it for a console app (do they have handle ref's?) but you could pass ShowWindow a window handle to hide it.

http://msdn2.microsoft.com/en-us/library/ms633548(VS.85).aspx

[edit]
Sorry long day, of course it would have a handle. I don't do much C++ but if the handle isn't right there to get you could find it with FindWindowEx for ConsoleWindowClass's
 
Last edited:
Back
Top Bottom