Bonjour,
je suis entrain d essayer de faire un editeur de texte avec les MFC. Pour le moment, je peux ecrire du texte dans une fenetre mais je ne vois pas comment l enregistrer et, par la suite charger un fichier que j aurais enregistre. Pour le moment, voila en gros ce que j ai :
Dans CihmDoc.h :
CRichEditCtrl m_rich;
Dans CihmView.cpp :
int CInterTestView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
CRect rect(0, 0, 0, 0);
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
CInterTestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
pDoc->m_rich.Create(WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL, rect, this, 1);
return 0;
}
Si qq pouvait m aider...
merci.