Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In windows explorer if you hold the left mouse button down and move it around the window a blue translucent selection marquee appears. As you move the mouse around the marquee grows and all items touched by or inside the marquee are selected. I was wondering if anyone had any idea on how to paint such a marquee in response to a call to InvalidateRect? I am familiar with standard GDI functions (PatBlt, BitBlt, LineTo etc. etc.) but have no idea how to make the marquee opaque. In Windows explorer you can clearly see the items underneath the actual marquee.

Thanks in advance.
Posted
Updated 28-Jan-11 12:55pm
v3

1 solution

GDI+ lets you draw using argb colors. the 'a' part lets you work with transparency. a=0 -> transaprent, a=255 -> opaque.

See GDI+[^] for more information.

Regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900