title: SendMessage to minimized window
body: <p>I'm trying to click a button in a minimised application, I use this code</p>
  
  <pre><code>Private Const WM_LBUTTONDOWN = &amp;H201
  Private Const WM_LBUTTONUP = &amp;H202
  Dim ParenthWnd As New IntPtr(0)
  Dim hWnd As New IntPtr(0)
  ParenthWnd = FindWindow(Nothing, "Title of application")
  
  If ParenthWnd.Equals(IntPtr.Zero) Then
      Debug.WriteLine(""Title of application" is not running")
  Else
      hWnd = FindWindowEx(ParenthWnd, hWnd, "Button", "Login")
      If hWnd.Equals(IntPtr.Zero) Then
          Debug.WriteLine(""Title of application" doesn't have a 'Login' button, how strange!")
      Else
          Debug.WriteLine(""Title of application" Window: " &amp; ParenthWnd.ToString())
          Debug.WriteLine("Button Control: " &amp; hWnd.ToString())
          SendMessage(hWnd, WM_LBUTTONDOWN, 1, 0)
          SendMessage(hWnd, WM_LBUTTONUP, 0, 0)
  
      End If
  End If
  </code></pre>
  
  <p>I get a real result in the debug window:</p>
  
  <pre><code>"title of window" Window: 2492018
  Button Control: 1836764
  </code></pre>
  
  <p>But it still only "marks" the button and doesn't click it, anyone know what I should change?</p>