how to move a rectangle
-
i am tryng to move a rectangle placed in CStatic object, the CStatic object is in a child window of the application.every time i move (on LButton Up)the rect it goes out of the CStatic object and goes to the corner of the client screen. I want it to remain within that CStatic object(rectangle)but it just flies out please help me. currently i m moving it with the help of SetWindowPos(); Should i get the coordinates of the CStatic object, then what???:sigh:
-
i am tryng to move a rectangle placed in CStatic object, the CStatic object is in a child window of the application.every time i move (on LButton Up)the rect it goes out of the CStatic object and goes to the corner of the client screen. I want it to remain within that CStatic object(rectangle)but it just flies out please help me. currently i m moving it with the help of SetWindowPos(); Should i get the coordinates of the CStatic object, then what???:sigh:
-
i am tryng to move a rectangle placed in CStatic object, the CStatic object is in a child window of the application.every time i move (on LButton Up)the rect it goes out of the CStatic object and goes to the corner of the client screen. I want it to remain within that CStatic object(rectangle)but it just flies out please help me. currently i m moving it with the help of SetWindowPos(); Should i get the coordinates of the CStatic object, then what???:sigh:
You can use also from
MoveWindow
for move_**
**_
WhiteSky