hi, i have an opengl app in a window with a menu and i have 2 problems.
1. when i click a menu option and a pop up dialog box appears, the app freezes completely. now if i move this dialog box around the screen, the area of the app becomes blured with this box and looks really ugly. this means the GL loop does not refresh itself. how can i make it refresh when the dialog box is open?
2. i've made it so that when a user presses enter the game begins, the problem is that if the pop up dialog box is open and the user pressed enter to quit that dialog box, the game starts. this means that the GetAsyncKeyState() function catches this keyboard message and the app thinks that the user wants to start the game when he's really just closing the dialog box. how can i make it ignore the keyboard messages if a menu dialog box is open?