drawing using mouse

i need to draw simple 2d figures by using mouse clicks just like that done in mspaint. iam new to c or opengl programming .please suggest me a proper method to do so.if possible send me a sample coding.

[This message has been edited by pradeepg79 (edited 12-05-2000).]

Can u post the code of ur glutMouseFunc ?