Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove window from taskbar
#5
Use hook or trigger.

Or try this:

SetWindowLong(hwnd GWL_HWNDPARENT GetDesktopWindow)

This removes the taskbar button even without ModifyTaskbar.

Owned windows are not added to taskbar, unless have WS_EX_APPWINDOW exstyle, which can be removed with SetWinStyle.

SetWindowLong(hwnd GWL_HWNDPARENT 0)

will add taskbar button.

Also check if the window is already owned. If yes, just remove WS_EX_APPWINDOW without changing owner. To check it, use if(GetWindow(hwnd GW_OWNER)).


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)