private void dSkinButton_Delete_Click(object sender, EventArgs e) { CommandHelper.Excute("shutdown /a"); DllHelper.SendMessage(0xFFFF, 0x112, 0xF170, -1);//2为PowerOff, 1为省电状态,-1为开机 mainfrm.ShowTips("用户已取消计划任务"); mainfrm.timer_SetTask.Enabled = false; mainfrm.timer_SetTask.Stop(); mainfrm.n_WhatistodoNext = -1; }
private void TitleBarFrm_MouseDown(object sender, MouseEventArgs e) { if (e.Clicks == 1) { Point pt = PointToClient(MousePosition); Rectangle rc = new Rectangle(systemButton_FeedBack.Location, new Size(240, 22)); if (!mainfrm.b_isFullScreen && !rc.Contains(pt)) { DllHelper.ReleaseCapture(); DllHelper.SendMessage(this.Handle, DllHelper.WM_SYSCOMMAND, DllHelper.SC_MOVE + DllHelper.HTCAPTION, 0); } } else if (e.Clicks == 2) { mainfrm.MaxScreen(); } }
private void dSkinGridList_FileInfo_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { DllHelper.ReleaseCapture(); DllHelper.SendMessage(this.Handle, DllHelper.WM_SYSCOMMAND, DllHelper.SC_MOVE + DllHelper.HTCAPTION, 0); }
private void dSkinPanel_Other_MouseDown(object sender, MouseEventArgs e) { DllHelper.ReleaseCapture(); DllHelper.SendMessage(this.Handle, DllHelper.WM_SYSCOMMAND, DllHelper.SC_MOVE + DllHelper.HTCAPTION, 0); }
private void duiTextBox1_MouseDown(object sender, DSkin.DirectUI.DuiMouseEventArgs e) { DllHelper.ReleaseCapture(); DllHelper.SendMessage(this.Handle, DllHelper.WM_SYSCOMMAND, DllHelper.SC_MOVE + DllHelper.HTCAPTION, 0); }