How to avoid shadow in ToolTips?

2019-07-13 02:48发布

I have developed a control for ToolTip and registered it as ToolTip with below codes,

protected override CreateParams CreateParams
{
   get
   {
       CreateParams param = base.CreateParams;
       param.ClassName = "tooltips_class32";
       param.Style = unchecked(WindowMessages.WS_POPUP) | WindowMessages.TTS_ALWAYSTIP;
       param.ExStyle |= WindowMessages.WS_EX_TOPMOST;
       return param;
   }
}

By default, the tooltip popup is enabled with Shadow.

enter image description here

How can i disable the default shadow of the ToolTip?

Regards,

1条回答
我想做一个坏孩纸
2楼-- · 2019-07-13 03:41

Try to remove CS_DROPSHADOW flag from ClassStyle:

int CS_DROPSHADOW = 0x00020000;

{
    ...
    param.ClassStyle &= ~CS_DROPSHADOW;
    ...
}
查看更多
登录 后发表回答