Win32: How to position a window at CW_USEDEFAULT?

BlitzMax Forums/BlitzMax Programming/Win32: How to position a window at CW_USEDEFAULT?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

well if you could create windows hidden, like in maxgui, then show them after you repositioned to the center with that code, then it would be nicer. thats for windows created by maxgui. to center an app with the graphics function you should read my post here
http://blitzmax.com/Community/posts.php?topic=57449
you need maxgui for it to work but it works. although if i knew how to find the size of the desktop without maxgui i would.

[edit] i used the above code and modified some modules. Now it works without MaxGUI!!!! :D