使用AnimateWindow显示子窗体时不能显示子窗体上的控件。
Form2 a = new Form2();
int x = Screen.PrimaryScreen.WorkingArea.Right - a.Width;
int y = Screen.PrimaryScreen.WorkingArea.Bottom - a.Height;
a.Location = new Point(x, y);//设置窗体在屏幕右下角显示
AnimateWindow(a.Handle, 1000, AW_SLIDE | AW_ACTIVE | AW_VER_NEGATIVE);
Form2 a = new Form2();
int x = Screen.PrimaryScreen.WorkingArea.Right - a.Width;
int y = Screen.PrimaryScreen.WorkingArea.Bottom - a.Height;
a.Location = new Point(x, y);//设置窗体在屏幕右下角显示
AnimateWindow(a.Handle, 1000, AW_SLIDE | AW_ACTIVE | AW_VER_NEGATIVE);
我是自定义了
demo在https://pan.baidu.com/s/1mi5ntBM
代码在:https://pan.baidu.com/s/1slWNEdJ
demo种类没写全,见代码里的
Chinese_Define.cs(一些漏写了,直接看下面代码直接用)
put3dForm.cs
Ui3dEffectFormMethods.cs
AlphaForm.cs