Selection Appearance

I am interested in displaying the appearance of a user selection, i.e. the selection outline/border, using "marching ants" - similar to how selections are shown in Photoshop and Paint Shop Pro.  How does one do this? Is there a pen/line style within MFC that I can choose that will do this for me or is this custom work?  If it is custom work, has anyone done it before that could explain how to do it?

Thanks in advance.
guinessAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cdesignerCommented:
at first you must catch cursor if mouse button pressed. Call SetCapture() on wm_lbuttondown
for mouse moving hook. and draw the selection border ( after every wm_mousemonve message ) and call ReleaseCapture for wm_lbuttonup.
that way?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
guinessAuthor Commented:
Not really.  What I am interested in is the visual effect of a dashed border moving/marching around the resulting bounding area of a selection AFTER the selection has already been made (not while the mouse is being dragged during the selection process).  If a selection consisted of multiple noncontiguous regions, all of the regions would have moving dashed borders.

0
cdesignerCommented:
i remeber codeguru have sample class for pring dashed lines.
you can paint lines by self , this is very simple
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.