title: How to block double click in overridden WndProc function in Windows Forms?
body: <p>I have a form created in Windows Forms which is draggable wherever I click. I made it by overriding WndProc function which in turn modifies each click as it was a title bar click:</p>
  
  <pre><code>    //found at: http://stackoverflow.com/questions/3995009/how-to-make-a-window-draggablec-winforms
      private const int WM_NCHITTEST = 0x84;
      private const int HTCLIENT = 0x1;
      private const int HTCAPTION = 0x2;
  
      ///
      /// Handling the window messages 
      ///
      protected override void WndProc(ref Message message)
      {
          base.WndProc(ref message);
  
          if (message.Msg == WM_NCHITTEST &amp;&amp; (int)message.Result == HTCLIENT)
              message.Result = (IntPtr)HTCAPTION;
      }
  </code></pre>
  
  <p>The problem is that now when I double click, the window becomes fullscreen, which is unwanted. How can I block this behavior?</p>