How can I turn on and turn off each frame of glasses?

Hello
I’ve could run some 3D vision samples in Visual Studio 2010,using Direct3D and openGL successfully. but actually I’m trying to be able to control each frame of the glasses ,like turning them on and off as I want ,or choosing what each of them show. but I don’t know how! The 3Dvision manuals didn’t help me so much.
could you please help me figure out ?!
Sorry I am noob in this field :)