06-29-2007, 08:58 PM
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)).
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)).
