How to display text on windows applications?

Is it possible to create a software to display text on windows applications such as games?
If so, can you please provide me the documentation I should study?
Who is Participating?
jkrConnect With a Mentor Commented:
The API in question is 'DrawText()' ( For an example, see ("Using Keyboard Input" - the text entered is the text that's displayed), the scoop would be to
        case WM_PAINT: 
            if (cch == 0)       // nothing in input buffer 
            hdc = BeginPaint(hwndMain, &ps); 
            // Set the clipping rectangle, and then draw the text 
            // into it. 
            SetRect(&rc, 0, 0, dwLineLen, dwClientY); 
            DrawText(hdc, pchInputBuf, -1, &rc, DT_LEFT); 
            EndPaint(hwndMain, &ps); 

Open in new window

Infinity08Connect With a Mentor Commented:
Yes, that's definitely possible. How to do that, depends on what kind of application you're talking about, and which graphics libraries you use for output.

What kind of game is this ? Which graphics libraries do you use ? Or is this a standard GUI game using the Windows API or another more specific framework ? Or ...
George TokasConnect With a Mentor Commented:
And the compiler used. If it is C++ Builder there are components for that job...

George Tokas.
ChrysaorAuthor Commented:
Infinity08: A simple windows application, such as the windows games or Paint.
George Tokas: Can you please tell me some of these components?
>> Infinity08: A simple windows application, such as the windows games or Paint.

Didn't the DrawText function jkr suggested work for you ?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.