   OpenGL / Hidden Dialog Boxes
  Hello all! Recently, I have been working on an particle editor which utilizes OpenGL. I started out with a MFC SDI application, drawing OpenGL to the window with no problem. However, anytime I opened a dialog box, the main window would gray out as if its focus was lost, but I could not see the dialog box. Hitting ALT brought the window into focus. I thought that maybe this was an MFC issue, so I did the same thing in Win32 and got the same issue. So, to try and get around this, I made a dialog based app in MFC and rendered OpenGL to a picture control. I use InvalidateRect to update the OpenGL window, in which I pass it the address of the RECT I get from getting the windowrect of the picture control, and pass false as the second parameter. When I use a combo box, it makes a large section of the center of the application totally gray until I click on the top left corner to bring down Move, Close, About Editor, etc. Also, if I tab through my different controls, the dotted outline stays on the buttons until I click on the top left corner.I have read a lot of articles and tutorials using OpenGL and MFC, and most didn''t cover animation or constant updating. The few that did had nothing but a single window.I know that this isn''t an impossible task, so I must be overlooking something really small. Any help would be greatly appreicated! Than you so much in advance! 