Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Win32: Is it possible to show the window but to hide it from taskbar?

If I have an win32 application with several windows, is it possible to show a window but hide the window icon in the taskbar?

I have tried creating the window with WS_EX_TOOLWINDOW and WS_EX_APPWINDOW.

like image 927
NirDemchog Avatar asked Nov 05 '15 06:11

NirDemchog


1 Answers

You have a few options:

  1. Tool windows do not have taskbar buttons. Create a tool window by including the WS_EX_TOOLWINDOW extended window style.
  2. Owned windows without the WS_EX_APPWINDOW extended style do not have taskbar buttons.
  3. Hidden windows do not have taskbar buttons.

Option 1 is simple enough. If you don't want to use a tool window, use a combination of 2 and 3. Create a hidden unowned window that is the owner of your main window.

like image 60
David Heffernan Avatar answered Oct 07 '22 14:10

David Heffernan