Hi,
I am trying to do an MFC-based OpenGL molecular viewer. I need to implement atom selection, so my code looks something like this:

//Selection function
OnSelect(CPoint pt)
{
GLint...