The standard handling of Mouse click event in VB.Net doesn't help because the control doesn't go into it's handler function if he form is covered with opengl drawings.
I have overriden WndProc in our VB.Net application and trapped WM_LBUTTONDOWN message, but I am unable to obtain the coordinates of the mouse position in Window coordinates. According to the documentation in msdn, LParam contains the X and Y coordinates in it's lower and upper words(or vice-versa - I am not sure). The problem is that LParam is an IntPtr . I could not obtain the integer value stored at this location(i.e., LParam). LParam gives the same value irrespective of the location at which I press the left mouse button. Is there a way around this problem? If I can obtain the value stored in LParam location I can do the the standard bitwise left and right shift operations to retrieve the X and Y window coordinates