public bool SetTransparent(int trans) { if (!IsAlive) { return(false); } return(Dm.SetWindowTransparent(_hwnd, trans) == 1); }
/// <summary> /// 设置窗口透明度 /// </summary> /// <param name="trans">透明度值</param> /// <returns></returns> public bool SetTransparent(int trans) { if (!IsAlive) { return false; } return Dm.SetWindowTransparent(_hwnd, trans); }