c# - Resizable window w/ taskbar button but w/o the title bar -


Try to override CreateParams as suggested, however, the taskbar button is not visible on initial load. The user must activate another window, then the goal window must be reactivated before the taskbar button appears.

Why is this for some reason? How do you work it?

WS_EX_APPWINDOW Flag ExStyle Try adding property of CreateParams.

Windows is estimating whether there should be a taskbar button in your window by viewing captions and other styles. WS_EX_APPWINDOW lets explain it so that Windows does not require estimation.

WS_EX_TOOLWINDOW makes it clear that you should not have a taskbar button

edit: like this

  create protected overrideParamelParamas {{CreateParams cp = Base.CreateParam; Cp.ExStyle | = 0x0040000; // Add WS_EX_APPWINDOW cp.Style & amp; = ~ 0x00C00000; // Remove WS_CAPTION cp; }}  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -