everlast
asked on
modifying WS_EX_TOOLWINDOW and taskbar
I need to have a window that can toggle between not showing
a button on the taskbar, and showing a button on the taskbar. So I change the window extended style with ModifyStyleEx and WS_EX_TOOLWINDOW. But the taskbar doesn't seem to update after I remove the WS_EX_TOOLWINDOW style. The button still exists (alltough no icon is showing) and when the program exits. It leavs a ghost button that dissapears when I press it. I'd like some tips on how to force the taskbar to comply with my window style
// everlast
a button on the taskbar, and showing a button on the taskbar. So I change the window extended style with ModifyStyleEx and WS_EX_TOOLWINDOW. But the taskbar doesn't seem to update after I remove the WS_EX_TOOLWINDOW style. The button still exists (alltough no icon is showing) and when the program exits. It leavs a ghost button that dissapears when I press it. I'd like some tips on how to force the taskbar to comply with my window style
// everlast
this is a bug of windows95,
sometime when the screen saver quit you will encounter the same thing.
there are two tips:
1 a window hides , the button on taskbar will dissapear at once.
2 add the icon to system tray , and not show the button on the taskbar at the application starts.
sometime when the screen saver quit you will encounter the same thing.
there are two tips:
1 a window hides , the button on taskbar will dissapear at once.
2 add the icon to system tray , and not show the button on the taskbar at the application starts.
How do you make it so it DOESN'T show in the task bar?
I don't know how to ModifyStyleEx and WS_EX_TOOLWINDOW.
I don't know how to ModifyStyleEx and WS_EX_TOOLWINDOW.
ASKER
wyy_cq, there has got to be a way to remove the taskbar button on the fly programmaticaly. The main problem isn't the ghost button when the program exits, but that the taskbar doesn't remove the button when I set WS_EX_TOOLWINDOW dynamicaly. When I press Alt+Tab, the program icon doesn't show(what's what I want).
So apprently, it's the taskbar that doesn't update. Maybe I can send some message to the taskbar window to force it to update?
So apprently, it's the taskbar that doesn't update. Maybe I can send some message to the taskbar window to force it to update?
ASKER
The_brain, I'm not sure I understand your comment, what function call do you mean? I have though about drawing the caption myself and intercept the WM_NCHITTEST message to emulate. That might be the only solution.
ASKER
Adjusted points to 200
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanx... I've allready found an answer though, your answer covers my question, but fails to add a button in the taskbar when I remove the WS_EX_TOOLWINDOW style. What I realy needed to do was hide the window with ShowWindow, modify the style, the show it again.
there is a possible solution, you only removed the icon. The removing is just to update the toolbar, override the function call it yourself to repaint. (over paint) and do it again.
i can't help more than that for now. :(