Click here to Skip to main content
15,924,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please tell me what's wrong in here... Pin
Christian Graus12-Jan-01 10:03
protectorChristian Graus12-Jan-01 10:03 
GeneralRe: Please tell me what's wrong in here... Pin
Jason Troitsky13-Jan-01 4:41
Jason Troitsky13-Jan-01 4:41 
GeneralRe: Please tell me what's wrong in here... Pin
Anders Molin13-Jan-01 7:22
professionalAnders Molin13-Jan-01 7:22 
QuestionHow to create a custom window class name in MFC Pin
James Spibey12-Jan-01 0:50
James Spibey12-Jan-01 0:50 
AnswerRe: How to create a custom window class name in MFC Pin
Michael Dunn12-Jan-01 13:57
sitebuilderMichael Dunn12-Jan-01 13:57 
GeneralCEditView and... Pin
11-Jan-01 23:45
suss11-Jan-01 23:45 
GeneralRe: CEditView and... Pin
Jason Troitsky12-Jan-01 2:07
Jason Troitsky12-Jan-01 2:07 
GeneralRe: CEditView and... Pin
12-Jan-01 6:28
suss12-Jan-01 6:28 
Perfect! Thankx! Smile | :)

One problem though, the LineScroll(....) does not scroll! Frown | :(
One thing am stock with is this scenario:

I have a dialog that is modal, I enter text into an Editbox on it and then add this dialogs text into the edit box of the view! But once I add another text, it just appends to the end of the last existing text. What I need is to scroll the cursor down, something like as if I pressed the Enter key while in the view's text editor area!

this is my code fragment:

<br />
<br />
<br />
void CTestView::OnInsertText() <br />
{<br />
<br />
  CNewString	dlg;<br />
<br />
  CEdit *pEdit = (CEdit*) &GetEditCtrl();<br />
  ASSERT(pEdit);<br />
 <br />
  UINT result = dlg.DoModal();<br />
	<br />
  if(result==IDOK){<br />
			<br />
	m_NewString += dlg.m_String; <br />
	pEdit->SetWindowText(m_NewString);<br />
			<br />
	pEdit->LineScroll(1); // This should scroll one line down!?<br />
						<br />
  }<br />
	<br />
}<br />
<br />

GeneralRe: CEditView and... Pin
12-Jan-01 6:32
suss12-Jan-01 6:32 
GeneralRe: CEditView and... Pin
12-Jan-01 2:11
suss12-Jan-01 2:11 
GeneralRe: CEditView and... Pin
12-Jan-01 6:35
suss12-Jan-01 6:35 
GeneralFonts in VC++ Code Editor Pin
11-Jan-01 17:51
suss11-Jan-01 17:51 
GeneralRe: Fonts in VC++ Code Editor Pin
Michael Dunn11-Jan-01 20:52
sitebuilderMichael Dunn11-Jan-01 20:52 
QuestionSound?? Pin
11-Jan-01 10:01
suss11-Jan-01 10:01 
QuestionSound?? Pin
11-Jan-01 10:01
suss11-Jan-01 10:01 
AnswerRe: Sound?? Pin
Christian Graus11-Jan-01 12:44
protectorChristian Graus11-Jan-01 12:44 
GeneralRe: Sound?? Pin
12-Jan-01 7:59
suss12-Jan-01 7:59 
GeneralRe: Sound?? Pin
Jim Howard12-Jan-01 9:37
Jim Howard12-Jan-01 9:37 
GeneralRe: Sound?? Pin
13-Jan-01 6:44
suss13-Jan-01 6:44 
GeneralRe: Sound?? Pin
Christian Graus13-Jan-01 8:49
protectorChristian Graus13-Jan-01 8:49 
GeneralRe: Sound?? Pin
13-Jan-01 8:52
suss13-Jan-01 8:52 
GeneralRe: Sound?? Pin
13-Jan-01 8:53
suss13-Jan-01 8:53 
GeneralRe: Sound?? Pin
Christian Graus13-Jan-01 12:40
protectorChristian Graus13-Jan-01 12:40 
AnswerRe: Sound?? Pin
13-Jan-01 10:47
suss13-Jan-01 10:47 
GeneralByte order Pin
11-Jan-01 9:28
suss11-Jan-01 9:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.