예제 #1
0
        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();
            }
        }
예제 #2
0
 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);
 }
예제 #3
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);
 }
예제 #4
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);
 }