Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The answer to your question is that you cannot.</p> <p>But a workaround, to give you a transparent section in your form, would be to add the <code>WS_EX_LAYERED</code> extended window style to your form. Then you can tell the Window Manager that you want to use a chroma-color key to make part of your form transparent:</p> <pre><code>SetLayeredWindowAttributes( Form.Handle, // __in HWND hwnd, RGB(0, 255, 0), //green is the color key __in COLORREF crKey, 255, //window is opaque otherwise __in BYTE bAlpha, LWA_COLORKEY //use color-key (rather than per-pixel alpha) __in DWORD dwFlags ); </code></pre> <p>Then you can put your "transparent" area as lime green:</p> <p><img src="https://i.stack.imgur.com/sXu6k.jpg" alt="enter image description here"></p> <p>Which then at runtime will be transparent:</p> <p><img src="https://i.stack.imgur.com/57yB5.jpg" alt="enter image description here"></p> <hr> <p><strong>Update:</strong> When i use layered window to have full transparency mouse events <em>do</em> trickle through to what's underneath. Notice the "flag" icon highlight:</p> <p><img src="https://i.stack.imgur.com/tjlzf.jpg" alt="enter image description here"></p> <h1>See also</h1> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/ms632599%28v=vs.85%29.aspx#layered" rel="nofollow noreferrer">Window Overview -> Window Features -> Layered Windows</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/ms633540%28v=vs.85%29.aspx" rel="nofollow noreferrer">SetLayeredWindowAttributes Function</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/ff700543%28v=vs.85%29.aspx" rel="nofollow noreferrer">Extended Window Styles</a></li> <li><a href="http://Layered%20Windows" rel="nofollow noreferrer">Layered Windows</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload