How to set text cursor at coordinate?

DangDKhanh-2637 941 Reputation points


Let's say I have text strings as shown. how do I move cursor to the specify characters?

The boxes can be controls in an application example mfc, chrome,...

User's image

User's image

I tried using SetConsoleCursorPosition but the result always returns 0, is that the right approach?

Thanks you.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,351 questions
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,438 questions
{count} votes

0 additional answers

Sort by: Most helpful