如何完全将文本文件中的数据直接从文本文件插入到我的编辑控件中 [英] How to insert data from a text file directly to my edit control exactly exactly as found in the file

查看:103
本文介绍了如何完全将文本文件中的数据直接从文本文件插入到我的编辑控件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本文件,我需要将所有文本直接放在编辑控件中,我不知道如何.请有人帮助我

Hi I have a text file and I need to put all the text in this in my edit control directly and I don´t know how.Please someone help me

推荐答案

如果使用的是普通Win32 API:
将文件内容读取到缓冲区中(请参见打开文件在MSDN上读取或写入 [如何在MSDN上创建多行编辑控件 [
If you are using plain Win32 API:
Read the file content into a buffer (see Opening a File for Reading or Writing at MSDN[^]) and then send the WM_SETTEXT message to the edit control (see How to Create a Multiline Edit Control at MSDN[^]).


这篇关于如何完全将文本文件中的数据直接从文本文件插入到我的编辑控件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆