Changing the focus back to the console window

1.6k views Asked by At

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?

0

There are 0 answers