记录

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;
}
}

 

上一篇:tmux 鼠标+快捷键设置


下一篇:更新后小程序getUserProfile和getUserInfo的使用