Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCurrent line of a CRichEditCtrl Pin
ForNow14-May-13 8:53
ForNow14-May-13 8:53 
AnswerRe: Current line of a CRichEditCtrl Pin
David Crow15-May-13 5:44
David Crow15-May-13 5:44 
GeneralRe: Current line of a CRichEditCtrl Pin
ForNow16-May-13 21:08
ForNow16-May-13 21:08 
QuestionRe: Current line of a CRichEditCtrl Pin
David Crow17-May-13 3:12
David Crow17-May-13 3:12 
AnswerRe: Current line of a CRichEditCtrl Pin
ForNow17-May-13 4:24
ForNow17-May-13 4:24 
GeneralRe: Current line of a CRichEditCtrl Pin
David Crow17-May-13 4:47
David Crow17-May-13 4:47 
GeneralRe: Current line of a CRichEditCtrl Pin
ForNow17-May-13 4:54
ForNow17-May-13 4:54 
GeneralRe: Current line of a CRichEditCtrl Pin
ForNow18-May-13 21:44
ForNow18-May-13 21:44 
Hi

I added to ES_AUTOHSCROLL and VSCROLL

The Caret seems to appear in the middle of the text but no scrolling here is a snipet of my code
<pre lang= 'cpp'>
in CProgDebug::ONINITDIALOG


long start, end, theline;
myedit = new CProgedit; // allocate the richedit
UpdateData(FALSE); // connect to dilog object
// myedit->SetOptions(ECOOP_OR, ECO_AUTOVSCROLL | ECO_AUTOHSCROLL);

EDITSTREAM es;


// Set the ENM_REQUESTRESIZE event flag
// myedit->SetEventMask( ENM_REQUESTRESIZE ); // set notificate to keep number of charcters in view

// Force the control to issue a EN_REQUESTRESIZE notification
// myedit->RequestResize( );


CStdioFile *fileptr = new CStdioFile;
fileptr->Open(proglisting,CFile::typeBinary);
es.dwCookie = (DWORD) fileptr;
es.dwError = 0;
es.pfnCallback = (EDITSTREAMCALLBACK) readlisting;
myedit->StreamIn(SF_TEXT, es);
myedit->SetFocus();

theline = myedit->LineFromChar(myedit->LineIndex(-1));


myedit->LineScroll(-theline,0);
myedit->HideSelection(TRUE,FALSE);

ShowWindow(SW_SHOW);

CDialog::OnInitDialog();
return TRUE;
}


</pre>

IDD_PROGDBG DIALOGEX 0, 0, 779, 345
STYLE DS_SETFONT | DS_MODALFRAME |WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Debug Dialog"
MENU IDR_HERC_CMDTYPE
FONT 8, "Times New Roman", 400, 0, 0x0
BEGIN
CONTROL "",IDC_RICHEDIT22,"RichEdit20A",WS_CHILD | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_MULTILINE | WS_BORDER | WS_TABSTOP,17,39,735,273

END
Questionhow to develop an generic hid mouse emulator? (Driver in c) Pin
jeffery c14-May-13 4:05
jeffery c14-May-13 4:05 
QuestionHow to Reload the Explorer Pin
sarfaraznawaz14-May-13 2:08
sarfaraznawaz14-May-13 2:08 
AnswerRe: How to Reload the Explorer Pin
dusty_dex14-May-13 2:58
dusty_dex14-May-13 2:58 
QuestionRe: How to Reload the Explorer Pin
David Crow14-May-13 7:00
David Crow14-May-13 7:00 
AnswerRe: How to Reload the Explorer Pin
sarfaraznawaz14-May-13 23:13
sarfaraznawaz14-May-13 23:13 
GeneralRe: How to Reload the Explorer Pin
David Crow15-May-13 5:17
David Crow15-May-13 5:17 
QuestionCBitmap::CreateCompatibleBitmap() fail Pin
_Flaviu13-May-13 2:44
_Flaviu13-May-13 2:44 
SuggestionRe: CBitmap::CreateCompatibleBitmap() fail Pin
Jochen Arndt13-May-13 3:05
professionalJochen Arndt13-May-13 3:05 
GeneralRe: CBitmap::CreateCompatibleBitmap() fail Pin
_Flaviu15-May-13 19:59
_Flaviu15-May-13 19:59 
GeneralRe: CBitmap::CreateCompatibleBitmap() fail Pin
Jochen Arndt15-May-13 20:46
professionalJochen Arndt15-May-13 20:46 
Questionchar ** initialization and store values Pin
tagopi13-May-13 2:42
tagopi13-May-13 2:42 
AnswerRe: char ** initialization and store values Pin
Jochen Arndt13-May-13 2:58
professionalJochen Arndt13-May-13 2:58 
AnswerRe: char ** initialization and store values Pin
Erudite_Eric14-May-13 11:18
Erudite_Eric14-May-13 11:18 
AnswerRe: char ** initialization and store values Pin
«_Superman_»14-May-13 16:58
professional«_Superman_»14-May-13 16:58 
GeneralRe: char ** initialization and store values Pin
Erudite_Eric15-May-13 0:47
Erudite_Eric15-May-13 0:47 
QuestionHow to change the string of a MFC Menu item that contains '\t' Pin
haha_c12-May-13 21:40
haha_c12-May-13 21:40 
SuggestionRe: How to change the string of a MFC Menu item that contains '\t' Pin
Richard MacCutchan12-May-13 23:02
mveRichard MacCutchan12-May-13 23:02 

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.