繁体版 在线投稿 RSS 设为首页 收藏本站
当前位置:首页 > 道教维基百科
施食上救苦疏科仪
this.Name = "WuyinMsnForm"; this.Text = "Form1"; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown); this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged); this.Load += new System.EventHandler(this.WuyinMsnForm_Load); this.DoubleClick += new System.EventHandler(this.Form1_DoubleClick); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseUp); this.LocationChanged += new System.EventHandler(this.Form1_LocationChanged); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove); } #endregion Windows 窗体设计器生成的代码 Point location = new Point(0, 0); Point p = new Point(0, 0); Size size = new Size(600, 400); bool isMax = false; private System.Windows.Forms.ContextMenu ControlMenu; private System.Windows.Forms.MenuItem menuItem6; private System.Windows.Forms.MenuItem menuRestore; private System.Windows.Forms.MenuItem menuMove; private System.Windows.Forms.MenuItem menuSize; private System.Windows.Forms.MenuItem menuMin; private System.Windows.Forms.MenuItem menuMax; private System.Windows.Forms.MenuItem menuClose; bool cursor = false; Graphics g = null; bool IsDiaLog = false; public const int WM_NCPAINT = 0x85; Color DeskTop = Color.FromArgb(122, 150, 223); Color Caption = Color.FromArgb(216, 228, 248); protected override void WndProc(ref Message m) { RectangleF rectf; switch (m.Msg) { case WM_NCPAINT: IntPtr hrgn = m.WParam; if (hrgn != (IntPtr)1) { Region rgn = Region.FromHrgn(hrgn); g = CreateGraphics(); rectf = rgn.GetBounds(g); PaintNonClientArea(g, rectf); } else { g = CreateGraphics(); rectf = new RectangleF(0, -23, Width, 23); PaintNonClientArea(g, rectf); g.Dispose(); } //base.WndProc(ref m); break; default: base.WndProc(ref m); break; } } public bool isDialog { get { return IsDiaLog; } set { IsDiaLog = value; } } void PaintNonClientArea(Graphics g, RectangleF r) { this.PainWindow(g); } public Form1() { InitializeComponent(); this.MinimumSize = new Size(160, 20); this.FormBorderStyle = FormBorderStyle.None; } protected override void OnPaint(PaintEventArgs e) { g = this.CreateGraphics(); this.PainWindow(g); } public override string Text { get { return base.Text; } set { DrawText(this.CreateGraphics()); base.Text = value; } } protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); } void PainWindow(Graphics gx) { Bitmap bmp = new Bitmap(this.Width, this.Height); Graphics g = Graphics.FromImage(bmp); Pen pen; //左边框1 pen = new Pen(Color.FromArgb(133, 150, 202)); g.DrawLine(pen, new Point(0, 0), new Point(0, this.Height)); //上边框1 g.DrawLin
顶一下
()
100.00%
踩一下
()
0.00%
发表评论
提 交

免责声明:

1.本站所有文章均仅代表作者本人观点,不代表中国论道网立场,其观点供读者参考。

2.本站百分之九十九以上的文章均为 中国论道网 特约作者原创,且来源已注明“中国论道网”,其版权归中国论道网和文章作者共同所有。未经本站授权,任何印刷性书籍刊物及营利性性电子刊物及网站不得转载,否则将追究法律责任。欢迎非营利性电子刊物、网站转载,但须清楚注明文章作者,出处及链接(http://www.chinalundao.com/)。

3.来源非中国论道网的文章均来自网上收集,且均已注明来源及作者,其版权归作者本人所有,如果有任何侵犯您权益的地方,请联系我们,我们将马上进行处理,谢谢。

站长QQ:987210969
广告联系qq:987210969;qq群号:45471901;邮箱email:chinalundao@qq.com;987210969@qq.com
QQ群:45471901   投稿邮箱:chinalundao@qq.com 访问统计:
回到顶端