Changing the focus back to the console window

对着背影说爱祢 提交于 2019-12-23 15:38:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!