This is my code for creating my menu for the program:
WNDCLASS wc;
...
hInstance = GetModuleHandle(NULL);
wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
wc.lpfnWndProc = (WNDPROC) WndProc;
wc.hInstance = hInstance;
...
if(!RegisterClass(&wc)) ...
Now if i open the menu, my program will pause until i dont use the menu anymore, how do i make it so my window would keep rendering even if i use the menu? I am using OpenGL window, if that matters.
Note that the menu should render exactly like it does with this code (so it would not render the menu OVER my opengl render area, but take space for its own area.
You need to do your rendering in a separate thread – popping up a menu will always halt a single-threaded Windows application.