Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Advice: Managed C++ or C# Pin
fmmanrique2-Jan-06 10:31
fmmanrique2-Jan-06 10:31 
QuestionUpgrading MFC projects from VS2003 to VS2005 Pin
peterboulton29-Dec-05 2:56
professionalpeterboulton29-Dec-05 2:56 
AnswerRe: Upgrading MFC projects from VS2003 to VS2005 Pin
ddmcr29-Dec-05 3:07
ddmcr29-Dec-05 3:07 
AnswerRe: Upgrading MFC projects from VS2003 to VS2005 Pin
peterboulton29-Dec-05 3:57
professionalpeterboulton29-Dec-05 3:57 
GeneralRe: Upgrading MFC projects from VS2003 to VS2005 Pin
ddmcr29-Dec-05 6:23
ddmcr29-Dec-05 6:23 
GeneralRe: Upgrading MFC projects from VS2003 to VS2005 Pin
peterboulton29-Dec-05 6:38
professionalpeterboulton29-Dec-05 6:38 
AnswerRe: Upgrading MFC projects from VS2003 to VS2005 Pin
Nish Nishant29-Dec-05 8:32
sitebuilderNish Nishant29-Dec-05 8:32 
QuestionCRichEditView question Pin
YaronNir29-Dec-05 2:20
YaronNir29-Dec-05 2:20 
Hi all,

IDE is VS.7:
I've created a Doc/View project, and the view inherts from CRichEditView.

now when i open a file (OnFileOpen) i know the code behind the scene eventually is

void CDocManager::OnFileOpen()
{
	// prompt the user (with all document templates)
	CString newName;
	if (!DoPromptFileName(newName, AFX_IDS_OPENFILE,
	  OFN_HIDEREADONLY | OFN_FILEMUSTEXIST, TRUE, NULL))
		return; // open cancelled

	AfxGetApp()->OpenDocumentFile(newName);
		// if returns NULL, the user has already been alerted
}


where the OpenDocumentFile of the CWinApp loads the file.
but how do i make the rich edit to display the file content?

thanks in advanced.

Yaron

Ask not what your application can do for you,
Ask what you can do for your application
QuestionRe: CRichEditView question Pin
David Crow29-Dec-05 3:12
David Crow29-Dec-05 3:12 
AnswerRe: CRichEditView question Pin
YaronNir29-Dec-05 3:25
YaronNir29-Dec-05 3:25 
GeneralRe: CRichEditView question Pin
David Crow29-Dec-05 3:49
David Crow29-Dec-05 3:49 
GeneralRe: CRichEditView question Pin
YaronNir29-Dec-05 3:52
YaronNir29-Dec-05 3:52 
GeneralRe: CRichEditView question Pin
David Crow29-Dec-05 3:54
David Crow29-Dec-05 3:54 
QuestionTo Change CPU after creation of Project in eVC++ Pin
birajendu29-Dec-05 1:59
birajendu29-Dec-05 1:59 
AnswerRe: To Change CPU after creation of Project in eVC++ Pin
GDavy29-Dec-05 2:15
GDavy29-Dec-05 2:15 
GeneralRe: To Change CPU after creation of Project in eVC++ Pin
birajendu29-Dec-05 17:30
birajendu29-Dec-05 17:30 
QuestionPrinting REFCLSID Pin
Chintoo72329-Dec-05 1:44
Chintoo72329-Dec-05 1:44 
AnswerRe: Printing REFCLSID Pin
khan++29-Dec-05 3:15
khan++29-Dec-05 3:15 
GeneralRe: Printing REFCLSID Pin
Chintoo72329-Dec-05 3:25
Chintoo72329-Dec-05 3:25 
QuestionShade icon on the view (SDI ) Pin
zhonglin.liang29-Dec-05 1:39
zhonglin.liang29-Dec-05 1:39 
AnswerRe: Shade icon in a view (SDI ) Pin
Identity Undisclosed29-Dec-05 1:58
Identity Undisclosed29-Dec-05 1:58 
GeneralRe: Shade icon in a view (SDI ) Pin
zhonglin.liang29-Dec-05 2:17
zhonglin.liang29-Dec-05 2:17 
GeneralRe: Shade icon in a view (SDI ) Pin
Identity Undisclosed29-Dec-05 2:30
Identity Undisclosed29-Dec-05 2:30 
GeneralRe: Shade icon in a view (SDI ) Pin
zhonglin.liang29-Dec-05 2:46
zhonglin.liang29-Dec-05 2:46 
GeneralRe: Shade icon in a view (SDI ) Pin
Identity Undisclosed29-Dec-05 3:48
Identity Undisclosed29-Dec-05 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.