move object with a mouse

hello,
can somebody tell me the code to move a 3d object ( which has been selected ) with a mouse without affecting other objects on the screen?i am using MFC with OpenGL.

                      ---aditya

So are you asking for selection code or translation code?

PushMatrix
Translate
draw_object
PopMatrix