Control Problem
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I'm using OpenGL on a dialog based MFC application. It works fine and well until I try to open a messagebox. Then the program freezes. I'm not sure why. By cutting certain lines of code out, I have discovered that the only lines that stop the problem from occuring that I can remove is:
CString className = AfxRegisterWndClass( CS_HREDRAW | CS_VREDRAW | CS_OWNDC, NULL, (HBRUSH)GetStockObject(BLACK_BRUSH), NULL); CreateEx( 0, className, "OpenGL", WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, rect, parent, 0);
I dont see how this could cause the error, but I think it does. If anyone can tell me how to make it not freeze when I display a message box I would appreciate it. Thanks a bunch. Ken