Now my code can move AIS_Shape with Mouse, but one important deficiency is the `move' is not persisted. I use the following code:
//handler for WM_MOUSEMOVE:
// m_hSelected is a Handle_AIS_Shape
this code can move AIS_Shape with mouse correctly, but next I try to move the same AIS_Shape, it will return to original location and then move starting from there!
So I add code to change the underlying TopoDS_Shape and reset this shape to AIS_Shape.
But I didn't know how can I synchronize two TopLoc_Location for both AIS_Shape & TopoDS_Shape, i.e. if I use m_hSelected->Location() as Location of associated TopoDS_Shape, it will be placed on a strange position. Could someone help me?