Using CHtmlView w/o a doc
-
I want to add text into this view without using a CHtmlEditDoc. This is what I have tried in my class which is derived from CHtmlEditView(Note the Uppercase HTML): void CHTMLEditView::SetHTML(CString sHTML) { SetWindowText(sHTML); } Everything runs fine but the text does not show up. This function is called before I show the view. Any suggestions would be appreciated. Matt (Padawan Learner)
-
I want to add text into this view without using a CHtmlEditDoc. This is what I have tried in my class which is derived from CHtmlEditView(Note the Uppercase HTML): void CHTMLEditView::SetHTML(CString sHTML) { SetWindowText(sHTML); } Everything runs fine but the text does not show up. This function is called before I show the view. Any suggestions would be appreciated. Matt (Padawan Learner)
SetWindowText
has a different purpose than adding html content in the view. Even callingSetWindowText
on a CView is doubtful since there is no caption in a CView. -
I want to add text into this view without using a CHtmlEditDoc. This is what I have tried in my class which is derived from CHtmlEditView(Note the Uppercase HTML): void CHTMLEditView::SetHTML(CString sHTML) { SetWindowText(sHTML); } Everything runs fine but the text does not show up. This function is called before I show the view. Any suggestions would be appreciated. Matt (Padawan Learner)
I went back to see if I could get any text into my newly created view like so: sHTML = "this is a test"; MessageBox( sHTML ); SetDocumentHTML( sHTML ); It only updates the view if I have MessageBox( sHTML ); in there, so I need to get my view to do whatever the msg box does. I saw a post where someone had the same problem, but I can't find it now. Matt (Padawan Learner)