I am working on a Win32 program in which I load text files. Would it be possible to highlight a particular word that is being displayed in the edit box?
By highlight, I mean, something like changing the color of the text as in syntax highlighting.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A standard Edit control does not support that. Use a RichEdit control instead. It supports applying font/color settings to a range of characters via the
EM_SETCHARFORMATmessage.