title: Simulating a click through Windows API using C++ doesn't seem to work
body: <p>so I have been trying to simulate a click on my file explorer window to get back from my open folder to the previous directory. Straight forward. So I used SpyXX to know the window's names, so I can simulate this click.</p>
  <p>Here is my code:</p>
  <pre><code>int main(int argc, char *argv[])
  {
  
  HWND hwnd = FindWindowA(&quot;CabinetWClass&quot;, &quot;SpyXX&quot;);
  if(!hwnd) {
      std::cout &lt;&lt; &quot;Error: Cannot find window!&quot; &lt;&lt; std::endl;
  }
  else {
      std::cout &lt;&lt; &quot;Success! Window found!&quot; &lt;&lt; std::endl;
  }
  
  HWND hwnd2 = FindWindowExA(hwnd, NULL, &quot;WorkerW&quot;, &quot;&quot;);
  if(!hwnd2) {
      std::cout &lt;&lt; &quot;Error: Cannot find child window!&quot; &lt;&lt; std::endl;
  }
  else {
      std::cout &lt;&lt; &quot;Success! Child window found!&quot; &lt;&lt; std::endl;
  }
  
  HWND hwnd3 = FindWindowExA(hwnd2, NULL, &quot;ReBarWindow32&quot;, &quot;&quot;);
  if(!hwnd3) {
      std::cout &lt;&lt; &quot;Error: Cannot find child window!&quot; &lt;&lt; std::endl;
  }
  else {
      std::cout &lt;&lt; &quot;Success! Child window found!&quot; &lt;&lt; std::endl;
  }
  
  HWND hwnd4 = FindWindowExA(hwnd3, NULL, &quot;UpBand&quot;, &quot;&quot;);
  if(!hwnd4) {
      std::cout &lt;&lt; &quot;Error: Cannot find child window!&quot; &lt;&lt; std::endl;
  }
  else {
      std::cout &lt;&lt; &quot;Success! Child window found!&quot; &lt;&lt; std::endl;
  }
  
  HWND hwnd5 = FindWindowExA(hwnd4, NULL, &quot;ToolbarWindow32&quot;, &quot;Nach-oben-Symbolleiste&quot;);
  if(!hwnd5) {
      std::cout &lt;&lt; &quot;Error: Cannot find child window!&quot; &lt;&lt; std::endl;
  }
  else {
      std::cout &lt;&lt; &quot;Success! Child window found!&quot; &lt;&lt; std::endl;
  }
  
  SendMessageA(hwnd5, BM_CLICK, 0, 0);
  
  
  return 1;
  }
  </code></pre>
  <p>And my output shows that the window has been found:</p>
  <pre><code>  Success! Window found!
    Success! Child window found!
    Success! Child window found!
    Success! Child window found!
    Success! Child window found!
  </code></pre>
  <p>However the SendMessageA command doesn't do anything. The file explorer window doesn't change, meaning the 'back' button has not been pressed. Why is that? What am I doing wrong? I also used the SendMessageW and SendMessage commands to no avail.</p>
  <p>Thanks alot in advance.</p>