• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3227
  • Last Modified:



According to windows API documentation, a window with style WS_EX_TOOLWINDOW does not show up in taskbar. I created a window with WS_EX_TOOLWINDOW, sure enough, it doesn't show up in taskbar. Now if I remove the WS_EX_TOOLWINDOW style, it shows up in taskbar, so far so good. But if I add the style again, it still stays in taskbar.

It seems that once it lost WS_EX_TOOLWINDOW, it always stays in taskbar, even if you put the style back in.

Has anyone run into this problem ? Other than destroying and recreating the window, how do you fix it ?

1 Solution
You need to hide it first and show it after changing the style.
byangAuthor Commented:
That's the trick! You need to hide it first, change the style, and reshow it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now