积极答复者
C++滚动条制作问题(非控件)

问题
答案
-
怎么不用CEdit/CRichEditCtrl控件?
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已标记为答案 lucy-liuModerator 2011年3月4日 9:47
-
归根到底其实是一个像素一个像素画出来的。
你要研究怎么绘制文本,参考这个库:http://msdn.microsoft.com/en-us/library/dd374091(v=vs.85).aspx
因为drawtext也不是最底层的。
- 已标记为答案 lucy-liuModerator 2011年3月4日 9:47
-
Hi VS2005,
您可以参考以下链接,有些可以下载相应的代码:
如何读取一个txt文件(并带有GridView控件): http://www.codeproject.com/KB/aspnet/Read_Text_File.aspx
如何读取一个文档文件(带有滚动条控件) : http://www.codeproject.com/KB/cs/getwordtext.aspx
如何读取一个txt文件 : http://msdn.microsoft.com/en-us/library/db5x7c0d.aspx
谢谢,
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 lucy-liuModerator 2011年3月4日 9:47
全部回复
-
怎么不用CEdit/CRichEditCtrl控件?
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已标记为答案 lucy-liuModerator 2011年3月4日 9:47
-
归根到底其实是一个像素一个像素画出来的。
你要研究怎么绘制文本,参考这个库:http://msdn.microsoft.com/en-us/library/dd374091(v=vs.85).aspx
因为drawtext也不是最底层的。
- 已标记为答案 lucy-liuModerator 2011年3月4日 9:47
-
Hi VS2005,
您可以参考以下链接,有些可以下载相应的代码:
如何读取一个txt文件(并带有GridView控件): http://www.codeproject.com/KB/aspnet/Read_Text_File.aspx
如何读取一个文档文件(带有滚动条控件) : http://www.codeproject.com/KB/cs/getwordtext.aspx
如何读取一个txt文件 : http://msdn.microsoft.com/en-us/library/db5x7c0d.aspx
谢谢,
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 lucy-liuModerator 2011年3月4日 9:47
-
HI VS2005,
您可以用clr/c++,它的语法与c#差不多。
另外,给出的例子只是说明一个思路。您可以根据这些,尝试去实现自己的功能,如果在这期间有什么问题,欢迎来这里提问。我们会尽力为您解决问题的。
您还可以考虑用MFC来写。您还可以看以下这些资料:
详细讲解C/C++/MFC中文件读写的方法:
http://www.cppblog.com/The-Moment/archive/2009/07/29/91556.html
以下这个链接的帖子讲解了,如何读取一个text文件,并有源代码:
http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/d879cfcc-3fb7-43a4-a442-c1bd8b4b5ae7
如果您认为我之前标记为答案的回答无法解决您的问题话,您可以取消标记为答案!
谢谢您的理解,
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.