How can I get the pixel coordinates of the mouse cursor when it is clicked in an Window?

the aim here is to draw a pixel where the mouse is clicked on the window.

I'm using glut library and not MFC wizards pants..

Many thanks

Nit