• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

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.
0
guiness
Asked:
guiness
  • 2
1 Solution
 
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
 
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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now