其他分享
首页 > 其他分享> > 记录

记录

作者:互联网

protected override void OnHandleCreated(EventArgs e)
{
InitializeStyles(); 
base.OnHandleCreated(e);
haveHandle = true;
}
private void InitializeStyles()
{
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.UserPaint, true);
UpdateStyles();
}

protected override CreateParams CreateParams
{
get
{
CreateParams cParms = base.CreateParams;
cParms.ExStyle |= 0x00080000; // WS_EX_LAYERED
return cParms;
}
}

 

标签:OnHandleCreated,记录,CreateParams,cParms,SetStyle,override,true
来源: https://www.cnblogs.com/engyue/p/11394754.html