skip_taskbar

Function skip_taskbar 

Source
pub(super) unsafe fn skip_taskbar(hwnd: *mut c_void)
Expand description

Hide the given top-level HWND from the Windows taskbar via ITaskbarList::DeleteTab. The window remains fully usable — Alt-Tab still finds it, it takes focus, repaints, etc. — but the shell paints no taskbar button for it regardless of the user’s “Combine taskbar buttons” setting.

Used only for WindowKind::Subwindow top-level windows. Must be called once the HWND exists (post-on_after_created) and re-applied on the TaskbarCreated broadcast after Explorer restarts.

Same primitive Electron uses in NativeWindowViews::SetSkipTaskbar (shell/browser/native_window_views.cc).