Exemplo n.º 1
0
 void SizeMouseDown(object sender, MouseEventArgs e)
 {
     if (e.Clicks <= 1)
     {
         WinBehavior.ReleaseCapture();
         WinBehavior.SendMessage(this.Handle, WinBehavior.msgenum.WM_SYSCOMMAND, WinBehavior.msgenum.SC_SIZE + WinBehavior.msgenum.RIGHTBOTTOM, 0);//拖动右下角改变窗体大小
     }
 }
Exemplo n.º 2
0
        void UpdateTick(object sender, EventArgs e)
        {
            WinBehavior.SetWindowPos(this.Handle, -1, 0, 0, 0, 0, 1 | 2);
            try{ string a = progd.msgSHOW.Dequeue();
                 if (a != "heart")
                 {
                     msglist.Items.Add(a);
                 }
            }catch (Exception) {}

            if (msglist.Items.Count > 0)
            {
                msglist.TopIndex = msglist.Items.Count - 1;
                return;
            }
        }
Exemplo n.º 3
0
 void TitleMouseDown(object sender, MouseEventArgs e)
 {
     WinBehavior.winmove(this.Handle);
 }