title: Win32 Prevent being transparent the borders of the Window
body: <p>I am dealing with win32. I have created a window. What I want is a transparent window for clicked area but nontransparent for border. Additionaly with no title bar.  It should seem like an empty rectangle. When I add the following code I, my whole window becomes transparent (borders are also tranparent.)</p>
  
  <pre><code>    SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
      SetLayeredWindowAttributes(hwnd, RGB(0, 0, 0), 75, LWA_ALPHA);
      SetWindowLong(hwnd, GWL_STYLE, 0);
  </code></pre>
  
  <p>The output of my code by adding the above code is like following:</p>
  
  <p>When opacity value is 255:</p>
  
  <p><a href="https://i.stack.imgur.com/BRvBq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BRvBq.png" alt=""></a></p>
  
  <p>When opacity value is 75</p>
  
  <p><a href="https://i.stack.imgur.com/hgSvy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hgSvy.png" alt="enter image description here"></a></p>
  
  <p>As you can see that the borders also transparent. How can I prevent becoming transparent border, but obtain transparent clicked area like a rectange?
  Thanks...</p>