Click here to Skip to main content
14,837,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to display the Contents of Selected file using MFC...
I have created sample notepad..
if I am clicking OPENFILE means,It will open OpenFileDialog box,after that
it doesnt display the Content on the window...

thanks,

[edit]unnecessary HTML tags removed[/edit]
Posted
Updated 1-Apr-13 22:58pm
v2

1 solution

Of course it doesn't; OpenFileDialog provides you the name of a file. You need to write the code to read the contents of the file and draw it onto your View window. There are plenty of MFC samples around that show how to do it.
   

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