hello everyone, i'm new in opengl and i'm new here too - seeking help from experts.
i've just written a programme that can create a window with a button pressed. but if i click on the 'x' on the top right of the window, the whole programme exits. is there any code that i can control the 'x' button so that it only closes the current window?
secondly, can i get the resolution of the screen automatically so that i can create a full screen window automatically. i want my programme to be able to run with any display resolution and use the dimension to separate the window into few viewports.
lastly (for the time being), can i set the printing options (paper size, etc. ) and print the display?
please give detailed explanation or sample code/syntax if possible. i'm new in opengl and still learning. thank you very much.