Link to home
Start Free TrialLog in
Avatar of naallen
naallen

asked on

Hiding vc++ 5.0 executables

How do I hide a program in vc++ 5.0 from showing up in the task list or taskbar? I need the program to hide itself when it first starts.
Avatar of viktornet
viktornet
Flag of United States of America image

Create a window that should have a dialog style and it will not show up in the task bar,,,
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shrif
shrif

nietod, are you sure about that?  Under Windows NT, if you look at the second tab of the task manager, you'll see services as well as normal executables.  If you look at the first tab, you only see the items that are on your task bar.  The things that are on your task bar are all top-level (non-popup) windows that are visible.  And if you're crazy enough to be running Program Manager instead of Explorer, you'll see this same list in the "task list".

Now, the list in the task bar are obviously not tasks.  One task, such as Navigator or Outlook can have multiple entries in the task bar.  And other programs don't have windows in the task bar at all.  I believe the person asking this question is asking about this second type program.

Seems to me that if you don't want your window to show in the Windows task bar, then don't create a top level window, or make your top level window hidden.
Appears to be true.  It does hide them under windows 95 though, so it seems that registering as a service is at least a step in the right direction.  I don't think you can do much better.