Get mouse click

What is the package or class name for mouse click events? AIS_Mousegesture is not what i am looking for i guess.

how to get user clicks and convert it as gp_Pnt? Right now, i have it like this.

I am working in Windows, MFC.

gp_Pnt startpoint(0, 0, 0);
gp_Pnt endpoint(100, 0, 0);
    
Handle(Geom_TrimmedCurve) aLine = GC_MakeSegment(startpoint, endpoint);

Thank you for your help.