问题
My knowledge of Windows programming is close to zero. But now I have made a Forth program running from the console in Windows which opening a primitive window for graphics. The problem is that I want to control the program by pressing keys, but when the program starts there is no focus on the console window, just on the graphic window.
How do I change back focus? I guess I have to use some WINAPI, but which?
来源:https://stackoverflow.com/questions/41272078/changing-the-focus-back-to-the-console-window