Notification Window - Preventing the window from ever getting focus

前端 未结 3 1295
醉酒成梦
醉酒成梦 2020-12-19 04:41

I\'m having some issues getting a notification box to behave correctly in c#. Basically I\'m showing a boarderless form in the lower right hand side of the screen, which dis

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-19 05:04

    Possibly WS_EX_NOACTIVATE extended window style is what you are looking for. Window with this style is not activated when clicked. For example, Virtual Keyboard window has this style.

    To apply this style to window, override CreateParams function and change baseParams.ExStyle.

提交回复
热议问题