title: Click-through Transparent window, no dragging allowed [C++]
body: <p>There are several ways to do this using .NET (take <a href="https://stackoverflow.com/questions/11077236/transparent-window-layer-that-is-click-through-and-always-stays-on-top">this</a> for instance), yet I wasn't able to reproduce the same thing using only C++ win32.</p>
  
  <p>My approach was to use <code>WS_EX_LAYERED</code> and then <code>SetLayeredWindowAttributes</code> to have some control over the opacity, but I read more and I found out that <code>WS_EX_TRANSPARENT</code> is 'better'- it allows click-through.</p>
  
  <p>However, using</p>
  
  <pre><code>hWnd = CreateWindowEx(WS_EX_TRANSPARENT, fooName, fooName, WS_OVERLAPPEDWINDOW | WS_POPUP | WS_CLIPSIBLINGS, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
  </code></pre>
  
  <p>doesn't seem to do the trick. There is also another thing: once I get the click-through window working, can I use </p>
  
  <pre><code>PostMessage(hWnd, WM_LBUTTONUP, 0, MAKELPARAM(GET_X_LPARAM(lParam) ,GET_Y_LPARAM(lParam)));
  </code></pre>
  
  <p>to block the dragging state from passing through?</p>
  
  <p>Note: the dragging state is produced using a touchpad device.</p>