I have a multiline edit box (non-MFC) in pure c++ and can display text happily in it.
But how do I make the edit box scroll automatically to the bottom of the text (once the edit box has filled up). At the moment I have to scroll manually.
This is my edit boxcreation code
hEdit=CreateWindowEx(WS_EX_CLIENTEDGE,"EDIT","",WS_CHILD|WS_VISIBLE|ES_MULTILINE|ES_AUTOVSCROLL|WS_VSCROLL,0,0,nNewWidth-16,nNewHeight-36,hWnd,(HMENU)IDC_MAIN_EDIT,GetModuleHandle(NULL),NULL); strcpy(buffer,"Some text \r\n"); SendMessage(hEdit,WM_SETTEXT,NULL,(LPARAM)buffer);
Any advice would be awesome