<span style="font-size:10pt;font-family:Arial Hi. I am having a problem getting the multilined text to line up with the vertical scroll bar after calling CEdit SetScrollPos. I have set up an edit box within the design view, set up the control variable ResultsWin for the edit box. After setting the text within the text box (30 lines of text) and then calling CEdit SetScrollPos to set the vertical scroll bar position to the bottom, the vertical scroll bar is updated correctly but the contents of the CEdit text box remains at the beginning of the text.
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial Please could somebody help me to resolve this. I have spent hours trying to get this to work by searching the web and testing out various functions of the CEdit class (like SetCaretPos) but I have had no success.
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial Code :
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial ResultsWin.SetScrollPos(SB_ENDSCROLL, 500);
<span style="font-size:10pt;font-family:Arial CPoint point;
<span style="font-size:10pt;font-family:Arial point.SetPoint(0,200);
<span style="font-size:10pt;font-family:Arial ResultsWin.SetCaretPos(point);
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial Thanks
View the full article
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial Please could somebody help me to resolve this. I have spent hours trying to get this to work by searching the web and testing out various functions of the CEdit class (like SetCaretPos) but I have had no success.
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial Code :
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial ResultsWin.SetScrollPos(SB_ENDSCROLL, 500);
<span style="font-size:10pt;font-family:Arial CPoint point;
<span style="font-size:10pt;font-family:Arial point.SetPoint(0,200);
<span style="font-size:10pt;font-family:Arial ResultsWin.SetCaretPos(point);
<span style="font-size:10pt;font-family:Arial
<span style="font-size:10pt;font-family:Arial Thanks
View the full article