RT隐藏窗口标题栏后,自己写了个伪标题栏。
但是出现了一个问题,
就是鼠标按住标题栏拖动窗口的时候,会将标题栏拖到windows任务栏背面,松开后就找不到窗口了
不知道怎么解决???鼠标任务栏拖动标题栏判断位置
但是出现了一个问题,
就是鼠标按住标题栏拖动窗口的时候,会将标题栏拖到windows任务栏背面,松开后就找不到窗口了
不知道怎么解决???鼠标任务栏拖动标题栏判断位置
解决方案 »
- 无法将类型为“System.Web.UI.DataBoundLiteralControl”的对象强制转换为类型“System.Web.UI.WebControl
- 获取视频缩略图的问题
- 文件间数据接收问题,在线等。
- c#中关于partial关键字的一个问题
- 嵌套循环问题,急呀...
- 请教一个TextBox Window Form事件问题??????
- 关于图象处理的问题
- Oracle VM 虚拟机 SQL 2008 数据库连接问题
- 如何截断字符串到一定长度。
- Messagebox怎么能做出yes,no选择的效果?
- newtonsoft.json将json转换为对象,自定义日期该如何设置?
- Threading.Timer线程终止现象解析
private static extern bool GetWindowRect(IntPtr hWnd, ref Rectangle lpRect); [DllImport("user32.dll")]
public static extern IntPtr FindWindow(string strClassName, int nptWindowName); private void MainForm_LocationChanged(object sender, EventArgs e)
{
IntPtr hWnd = FindWindow("Shell_TrayWnd", 0); if (hWnd != IntPtr.Zero)
{
Rectangle rect = new Rectangle();
GetWindowRect(hWnd, ref rect); if (this.Top >= rect.Top)
{
this.Top = rect.Top + this.Height;
}
}
}