output problem
-
Hallo i have the following code in a CRichEditView file: void Test_OnDraw(CDC* pDC,TextDoc* pDoc) { pDC->SetTextColor (RGB (0, 0, 0)); // CDC* pDc if (pDoc->m_carrDocOutput.GetSize ()) { CSize sz = pDC->GetOutputTextExtent (pDoc->m_carrDocOutput.GetAt (0)); for (short i = 0; i < pDoc->m_carrDocOutput.GetSize (); i++) pDC->TextOut (1, (sz.cy + 2) * i, pDoc->m_carrDocOutput.GetAt (i)); if (m_bAppendToEnd) { CPoint pt (1, __max (1, (sz.cy + 2) * (pDoc->m_carrDocOutput.GetSize () - 5))); ScrollToPosition (pt); } } } first the Compiler does not recognize this function : ScrollToPosition (pt); secondly when the output appears in the Output window there is no horizontal scroll bar , and when i click maximize or minimize the whole output text disappear.How can i fix this problem ? Thanks in Advance
-
Hallo i have the following code in a CRichEditView file: void Test_OnDraw(CDC* pDC,TextDoc* pDoc) { pDC->SetTextColor (RGB (0, 0, 0)); // CDC* pDc if (pDoc->m_carrDocOutput.GetSize ()) { CSize sz = pDC->GetOutputTextExtent (pDoc->m_carrDocOutput.GetAt (0)); for (short i = 0; i < pDoc->m_carrDocOutput.GetSize (); i++) pDC->TextOut (1, (sz.cy + 2) * i, pDoc->m_carrDocOutput.GetAt (i)); if (m_bAppendToEnd) { CPoint pt (1, __max (1, (sz.cy + 2) * (pDoc->m_carrDocOutput.GetSize () - 5))); ScrollToPosition (pt); } } } first the Compiler does not recognize this function : ScrollToPosition (pt); secondly when the output appears in the Output window there is no horizontal scroll bar , and when i click maximize or minimize the whole output text disappear.How can i fix this problem ? Thanks in Advance
ScrollToPosition is a member of CScrollView. is Test_OnDraw a member of a class that is derived from CScrollView ? (edit: also of CCtrlView)
image processing toolkits | batch image processing
modified on Thursday, July 2, 2009 9:28 AM
-
ScrollToPosition is a member of CScrollView. is Test_OnDraw a member of a class that is derived from CScrollView ? (edit: also of CCtrlView)
image processing toolkits | batch image processing
modified on Thursday, July 2, 2009 9:28 AM
no it is a member of class derived from CRichEditView. I have also a problem intializing the CDC* pDc outside the Class that derived frm CRichEditView. inside class Test_view::CRichEditView pDC will be intialized for the OnDraw fuction but i need to intialize CDC* pDC in the Test_Doc:: CRichEditDocument.
-
no it is a member of class derived from CRichEditView. I have also a problem intializing the CDC* pDc outside the Class that derived frm CRichEditView. inside class Test_view::CRichEditView pDC will be intialized for the OnDraw fuction but i need to intialize CDC* pDC in the Test_Doc:: CRichEditDocument.
ScrollTpPosition is a member function of CSrollView. Have a look at this link [^]