Link to home
Start Free TrialLog in
Avatar of yangfang_mun
yangfang_mun

asked on

How to write code in MFC to show that label of a circle can move with the moving of the circle?

On a map, I created a circle zone with a label, ex. Zone 1, and set the lable to be visible in my MFC code. There is a feature for this circle that it can be moved to anywhere on the map. But the problem is that the label with the circle does not move with the circle.
Avatar of cookre
cookre
Flag of United States of America image

You know the coordinates of the circle before and after the move.  That gives you a delta-x and delta-y you can apply to the .Top and .Left of the label.
ASKER CERTIFIED SOLUTION
Avatar of cookre
cookre
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial