I have a picture control (type rectangle) placed on a form view for a SDI application. I am trying to get the coordinates of this control to render OpenGL at that location. However, when I use:
CWnd *pwnd = GetDlgItem(IDC_PICT_CONTROL), it always returns NULL ?? Is there something special about the properties of the form (or if I do this on a dialog) that I need to know?
I have used this method successfully before to display bitmaps on dialogs and it worked well.
I'd appreciate any ideas.