Problem Outputting to New View
I created a splitter with two views , the left one being derived from ceditview with readonly style that I added through the class wizard, and the left one being one derived from cview (it is the original view class created by the appwizard). The splitter works fine, but I am unable to output anything to the new view. In the ondraw function of the new view, I write
pDC->TextOut(0,0,"Hello");
Is there something else I should be doing?
As well, do I have to add this new view to the document using AddView, as eventually I will need to output the document's member variables to the new view. If so, where would I add it (do I have do create a new doctemplate?)
Thnx
# 1 Re: Problem Outputting to New View
hmm, seems I can't use Ceditview-derived classes if I want to output to the screen:) Is there any easy way to allow users to copy text from a cview-derived class, as I will be outputting only text to my new view, and I want to give them option of copying the data to somewhere else.