⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 read.cgi-read=9716.htm

📁 mfc资料集合5
💻 HTM
字号:
<HTML><HEAD><TITLE>Re: HOW TO READ HUGE TEXT FILE (MORE THAN ONE GIGA).</TITLE>
</HEAD><BODY background="../fancyhome/back.gif" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF">
 <table WIDTH="100%"> <tr WIDTH="100%"> <td><table>
		<tr><td><img src="../mfc_sourcebook.jpg" tppabs="http://www.codeguru.com/mfc_sourcebook.jpg" 
		ALT="MFC Programmer's SourceBook" WIDTH="256" 
		HEIGHT="88"><td></tr>
		<tr><td valign="bottom"><font SIZE="+1" 
		color="#a0a0ff"><b>Discussion Board</b></font></td></tr>
		</table></td> <td width="40"></td>
		<td  align="right" valign="top"><A HREF="http://209.66.99.126/cgi/ads.cgi?advert=genitor"><IMG SRC="../banners/genitor.gif" tppabs="http://www.codeguru.com/banners/genitor.gif" HEIGHT=60 WIDTH=468 ALT="Genitor - award-winning Object Construction Suite for C/C++ development, documentation, and maintainance" BORDER=2></A><BR><SMALL><A HREF="http://209.66.99.126/cgi/ads.cgi?advert=genitor">Click here to get a trail copy of Genitor V3.1</A></SMALL><td> </tr> </table> <hr><P ALIGN=CENTER>[ <A HREF="#Responses">Read Responses</A> | <A HREF="#PostResponse">Post a New Response</A> | <A HREF="index.cgi.htm" tppabs="http://www.codeguru.com/mfc_bbs/index.cgi">Return to the Index</A> ]
<A HREF="http://www.codeguru.com/mfc_bbs/read.cgi?read=9694">Previous in Thread</A> | <A HREF="read.cgi-read=9744.htm" tppabs="http://www.codeguru.com/mfc_bbs/read.cgi?read=9744">Next in Thread</A><P ALIGN=CENTER><BIG><BIG><BIG><STRONG>Re: HOW TO READ HUGE TEXT FILE (MORE THAN ONE GIGA).</STRONG></BIG></BIG></BIG>
<P ALIGN=CENTER><EM>Posted by <STRONG><A HREF="mailto:noel0402@hotmail.com">Noel Carlos (MediaStruggle)</A></STRONG> on <STRONG>4/18/98 10:17a.m.</STRONG>, in response to <A HREF="http://www.codeguru.com/mfc_bbs/read.cgi?read=9694">Re: HOW TO READ HUGE TEXT FILE (MORE THAN ONE GIGA).</A>, posted by I.padilla on 4/18/98 2:41a.m.</EM></P>
<!-- REMOTE_HOST: 169.158.120.2; REMOTE_ADDR: 169.158.120.2-->
<P>Hola Padilla :
<P>Ahora te mostrare como hacerlo con una aplicacion basada en una caja de dialogos
<BR>Creas una aplicacion basada en un Dialogo con el APPWIZZARD 
<P>en el objeto aplicacion le adicionas la linea
<P>BOOL CHTextFilesApp::InitInstance()
<BR>{
<BR>        // la linea de abajo carga la dll RICHEDIT32.DLL
<BR>	AfxInitRichEdit();
<BR>......
<P>}
<P>luego creas un sobre el dialogo un control RichEdit y le pones como indentificador IDC_RICHEDIT
<P>creas tambien una variable miembro en la clase del dialogo 
<BR>para manipular el control
<P>CRichEditCtrl m_Editor;
<P>adicionas en el OnInitDialog
<P>BOOL CHTextFilesDlg::OnInitDialog()
<BR>{
<BR>	CDialog::OnInitDialog();
<P>	// Set the icon for this dialog.  The framework does this automatically
<BR>	//  when the application's main window is not a dialog
<BR>	SetIcon(m_hIcon, TRUE);			// Set big icon
<BR>	SetIcon(m_hIcon, FALSE);		// Set small icon
<P>	// esto es para vincular el objeto m_Editor con el control 
<BR>        // cuyo id es IDC_RICHEDIT
<BR>	m_Editor.SubclassDlgItem(IDC_RICHEDIT, this);
<BR>	// TODO: Add extra initialization here
<BR>	
<BR>	return TRUE;  // return TRUE  unless you set the focus to a control
<BR>}
<P>luego creas en el dialogo un boton para invocar la caja de dialgo del OpenFile y buscar el archivo que te hace falta .txt espero 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -