C# AnimateWindow 设置窗体动画
摘要:使用Win32的API接口,实现的窗口动画:淡入淡出、中心展开或收缩、滑动滚入或滚出。 bool AnimateWindow(IntPtr hWnd, int dwTime, int dwFlags); 编写如下代码: /// <summary> /// 从左到右滚动窗口,与AW_SLIDE一起时变
阅读全文
posted @
2020-12-24 20:54
云梦鸿
阅读(927)
推荐(0) 编辑
C# GetWindowRect 获取窗体在屏幕中的位置信息
摘要:利用Win332的API: bool GetWindowRect(IntPtr hWnd, ref RECT_INFO lpRect); 获取指定窗体或控件,在屏幕内地位置信息。 using System; using System.Runtime.InteropServices; namespac
阅读全文
posted @
2020-12-24 20:07
云梦鸿
阅读(2790)
推荐(0) 编辑
C# 创建音频WAVE文件头信息(*.wav)
摘要:C# 创建音频WAVE文件头信息(*.wav) 给一段音频数据(AD采集值),创建一个wav格式文件头信息,可以将它保存成音频文件,使用播放器播放。 /// <summary> /// 创建WAV音频文件头信息 /// </summary> /// <param name="data_Len">音频
阅读全文
posted @
2020-12-01 21:06
云梦鸿
阅读(1455)
推荐(0) 编辑