Click here to Skip to main content
15,882,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make my Tracker a bit nicer, by giving the Rubberband a Color and fill the Rectangle with a partial transparent Color.
My Class is derived from MFCs CRectTracker and i'm working with Dialogs.
Posted
Comments
enhzflep 22-Jan-14 3:33am    
You can do this with GDI+
You just need to create a semi-transparent GDI+ pen & brush.

You may find this article to be helpful. Just omit the arcs Darren uses at the corners, and be sure to specify a colour that doesn't have the alpha channel set to 100% opaque.

GDI+ round-rects

1 solution

Create a layered window. Resizing the rubber band re-sizes the window.

http://alexkr.com/source-code/50/layered-windows-and-updatelayeredwindow/
CLayeredWindowHelperST v1.0
 
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