C#如何用From窗体做一个百叶窗效果的闪屏
最近有个项目,客户要求在关闭一些窗体时添加一些效果,像PPT上面的百叶窗效果那样,那位高手能给个例子~~~~~~~~~~~...
最近有个项目,客户要求在关闭一些窗体时添加一些效果,像PPT上面的百叶窗效果那样,那位高手能给个例子~~~~~~~~~~~
展开
1个回答
2013-06-08
展开全部
#region private static class members
private static SplashScreen m_Instance = null;
private static object m_LockObject = new object();
#endregion
#region Interop definitions
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static public extern IntPtr GetDesktopWindow();
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public extern static IntPtr SetParent(IntPtr hChild, IntPtr hParent);
[DllImport("user32.dll", EntryPoint = "SetWindowPos", CallingConvention = CallingConvention.StdCall, SetLastError = true)]
public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
private const int WS_EX_TOPMOST = unchecked((int)0x00000008L);
private const int WS_EX_TOOLWINDOW = unchecked((int)0x00000080);
private const uint SWP_NOSIZE = 0x0001;
private const uint SWP_NOMOVE = 0x0002;
private const int HWND_TOPMOST = -1;
#endregion
private static SplashScreen m_Instance = null;
private static object m_LockObject = new object();
#endregion
#region Interop definitions
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static public extern IntPtr GetDesktopWindow();
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public extern static IntPtr SetParent(IntPtr hChild, IntPtr hParent);
[DllImport("user32.dll", EntryPoint = "SetWindowPos", CallingConvention = CallingConvention.StdCall, SetLastError = true)]
public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);
private const int WS_EX_TOPMOST = unchecked((int)0x00000008L);
private const int WS_EX_TOOLWINDOW = unchecked((int)0x00000080);
private const uint SWP_NOSIZE = 0x0001;
private const uint SWP_NOMOVE = 0x0002;
private const int HWND_TOPMOST = -1;
#endregion
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
君成
2023-06-28 广告
2023-06-28 广告
传递窗使用方法:1、原材料出入洁净室,严苛与人流通道分离,由生产线原材料用安全通道出入。2、材料进到时,原料由配置班工艺流程责任人抽调人员脱包或外观清理加工后,经传递窗送往生产车间原辅材料储存间;单包设备在另外储存间拆去包装后,经传递窗送进...
点击进入详情页
本回答由君成提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询