   Getting coordinates of a Static control
  I am writing a dialog app, that has OpenGL inside a static control on my dialog, My problem is I want to have input functions like:OnLButtonDown  OnMouseMove  OnLButtonUpBut the problem is that for Mouse move the CPoint structure, holds points referring to the whole screen, I need the CPoint structure to reference x,y coordinates for the static control.Can I do this, I''d appreciate any helpThanks in advance,Keith 
  Use GetWindowRect to get the coordinates of the rendering window relative to the whole screen, and use this info to figure out the coordinates on the client.If the control you''re rendering to has a border or anything like that, you might need to do a bit of additional work to take these into account. 