printing a sring to edit view/doccument
-
hello, this is a kind of simple question. I have MFC/C++ a html editor that i am in the process of making. I want to be able to print a string into the doccument such as a html tag and map it so that when i press a certain button it will display "/font"in the doccument for example. could be in the tool bar as well. if i can figure this out i will add a button for all the common html tags. i would greatly appreciate any help, thank you
void CtoolDlg::OnButton1()
{
//TODO: Add your control notification handler code here
} -
hello, this is a kind of simple question. I have MFC/C++ a html editor that i am in the process of making. I want to be able to print a string into the doccument such as a html tag and map it so that when i press a certain button it will display "/font"in the doccument for example. could be in the tool bar as well. if i can figure this out i will add a button for all the common html tags. i would greatly appreciate any help, thank you
void CtoolDlg::OnButton1()
{
//TODO: Add your control notification handler code here
}In your
CDocument
-derived class, you'll need an object (e.g.,CString
) to hold the (HTML) text. As you click each button, you'll update this object accordingly. After each update, you'll need to callUpdateAllViews(...)
so that the view can render the text.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
In your
CDocument
-derived class, you'll need an object (e.g.,CString
) to hold the (HTML) text. As you click each button, you'll update this object accordingly. After each update, you'll need to callUpdateAllViews(...)
so that the view can render the text.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
DavidCrow wrote: In your CDocument-derived class, you'll need an object (e.g., CString) to hold the (HTML) text. As you click each button, you'll update this object accordingly. After each update, you'll need to call UpdateAllViews(...) so that the view can render the text. hello, thx for the reply i will try and use this when i get the chance, it sounds a bit cloudy to me but i will have a go at it