I’m using Dev C++. After I created a windows application, it generated some code which creates a window. I understand the code broadly. I’ve found the code to set the size, title, and background color but how do I set up the default position of the new window? I want to start it at the center of the screen.
Share
You should have CreateWindow function, its definition is as follows:
The
xandyparameters specify the location of the newly-created window. These are the ones you need to set.