f1nalspace / final_game_tech

Game related libraries written in C/C++ written by T. Spaete
MIT License
177 stars 10 forks source link

[Win32] Properly show window on initialize (Foreground, Focus) #113

Closed f1nalspace closed 3 years ago

f1nalspace commented 3 years ago

The current way how I init a window before the message queue starts is not quite sufficient. Sometimes the window won't show up, because it starts behind other windows.

I found that the combination of:

ShowWindow() SetForegroundWindow() SetFocus()

works much better.

f1nalspace commented 3 years ago

Implemented in develop branch