How to avoid shadow in ToolTips?

∥☆過路亽.° 提交于 2020-02-04 05:41:06

问题


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.

How can i disable the default shadow of the ToolTip?

Regards,


回答1:


Try to remove CS_DROPSHADOW flag from ClassStyle:

int CS_DROPSHADOW = 0x00020000;

{
    ...
    param.ClassStyle &= ~CS_DROPSHADOW;
    ...
}


来源:https://stackoverflow.com/questions/43061307/how-to-avoid-shadow-in-tooltips

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!