title: C++: How do I use SetLayeredWindowAttributes() only on a parent window?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1294805/transparent-window-containing-opaque-text-and-buttons">Transparent window containing opaque text and buttons</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to manipulate an existing window with <strong>C++</strong>.</p>
  
  <p>Basically, what I'm trying to do is set the parent window transparent via first setting its window style to <code>WS_EX_LAYERED</code> and then using <code>SetLayeredWindowAttributes()</code> with the right values.</p>
  
  <p>The problem is that that will set the child windows to transparent also, which will make the whole program transparent (obviously a problem).</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT</strong> Image demonstrating the problem: <img src="https://i.stack.imgur.com/tX2qA.png" alt="enter image description here"></p>
  
  <p>As you might see, I set the taskbars window style to <code>WS_EX_LAYERED</code>, but for example the window <code>MSTaskSwWClass</code> (the window that has the running application icons) is also affected.</p>
  
  <p><strong>EDIT2</strong> Tried <code>UpdateLayeredWindow()</code> with the exact same outcome.</p>