Click here to Skip to main content
15,904,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Working to an MDI project and now I have to load some text files to my child window, that handles a static control. So I know how to add a bitmap to a static, but I was asking if the same thing working with a text file..?

Can anyone give me a hand.. will be so kind if will be a concrete answer like with show me the right path and how to handle a message inside a static, without any internet links ? maybe an example how it should look like ?

What I have tried:

I didn't try anything since I don't know how to handle a text file ... I was thinking is like adding an image but that doesn't work..
Posted
Updated 18-May-20 2:46am

1 solution

You need to read the text file into a string or array and then use that to send it to the control. Probably by using a WM_SETTEXT message (Winuser.h) - Win32 apps | Microsoft Docs[^] or similar.
 
Share this answer
 
Comments
M@gelearn 18-May-20 9:31am    
Okay Richard that's what I meant to do..
Thank you very much for your help..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900