<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_文明的天空_分类_WinForm</title><id>http://feed.cnblogs.com/blog/u/42305/category/234065/rss</id><updated>2012-06-01T15:22:36Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gleamy_ming/category/234065.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/42305/category/234065/rss"/><entry><id>http://www.cnblogs.com/gleamy_ming/archive/2011/01/30/1947829.html</id><title type="text">区别在WinForm中点击关闭还是执行Form.Close()</title><summary type="text">在C#的WinForm程序中，是用户点击了右上角的“关闭”按钮，还是调用了WinForm.Close()方法。最典型的是要知道点击右上角的“关闭”按钮发出的事件。下面这个方法可以判断这点：protected override void WndProc(refMessage msg) { const int WM_SYSCOMMAND = 0x0112;const int SC_CLOSE = 0xF060; if (msg.Msg == WM_SYSCOMMAND&amp;&amp; ((int)msg.WParam == SC_CLOSE)){//Doing Something return;}base.W</summary><published>2011-01-30T06:12:00Z</published><updated>2011-01-30T06:12:00Z</updated><author><name>文明的天空</name><uri>http://www.cnblogs.com/gleamy_ming/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gleamy_ming/archive/2011/01/30/1947829.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gleamy_ming/archive/2011/01/30/1947829.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/gleamy_ming/archive/2010/07/16/1778635.html</id><title type="text">[转载].NET中高效能的socket编程</title><summary type="text">.NET中高效能的socket编程</summary><published>2010-07-16T02:03:00Z</published><updated>2010-07-16T02:03:00Z</updated><author><name>文明的天空</name><uri>http://www.cnblogs.com/gleamy_ming/</uri></author><link rel="alternate" href="http://www.cnblogs.com/gleamy_ming/archive/2010/07/16/1778635.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/gleamy_ming/archive/2010/07/16/1778635.html"/><content type="html"/></entry></feed>
