title: Windows API and SendMessage()
body: <pre><code>int x = 5;
  int y = 10;
  
  y = y &lt;&lt; 16;
  int coord = x | y;
  
  NativeMethods.SendMessage(hwnd, WM_LBUTTONDOWN, new IntPtr(0), new IntPtr(coord));
  NativeMethods.SendMessage(hwnd, WM_LBUTTONUP, new IntPtr(0), new IntPtr(coord));
  </code></pre>
  
  <p>Using the above code (ref: MSDN), I'm able to select a row in a datagridview in an external application. I would like to know how I can send a ctrl-a and ctrl-c to the same datagridview.</p>
  
  <p>Still trying to connect to why the x and y variables are initialized to 5,10, and why y is left shifted by 16 and then | with x. </p>