title: How to toggle/switch Windows taskbar from "show" to "auto-hide" (and vice-versa)?
body: <p>Basically I want to make simple toggle program (that will be mapped to some keyboard shortcut) that set taskbar to auto-hide mode if in normal mode (and conversely, to normal show mode if in auto-hide).</p>
  
  <p>Do You know how to implement it in C#? (or Win32 C++, but anything that will actually do it is fine.)</p>
  
  <p>Thanks. Hope I've made myself clear.</p>
  
  <p>--</p>
  
  <p>I don't really want any full screen app that will overlap taskbar, only windowless program that toggles show mode and quit. I switch from auto-hide to normal view on regular basis and want to simplify it. (Using Win7.)</p>
  
  <p>--</p>
  
  <p>edited. For example</p>
  
  <pre><code>#include &lt;windows.h&gt;
  
  int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  {
      SetWindowPos(FindWindow(L"Shell_traywnd", NULL ), 0, 0, 0, 0, 0, 0x40);
  }
  </code></pre>
  
  <p>will not do the trick, it only shows taskbar, which is already visible=true, but not switch it to/from auto-hide.  (Same applies for 0x80.)</p>