Click here to Skip to main content
16,010,268 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblems scrolling in an edit box Pin
Fredrik Skog21-Dec-01 0:34
Fredrik Skog21-Dec-01 0:34 
GeneralRe: Problems scrolling in an edit box Pin
James R. Twine21-Dec-01 6:34
James R. Twine21-Dec-01 6:34 
GeneralRe: Problems scrolling in an edit box Pin
Fredrik Skog26-Dec-01 20:53
Fredrik Skog26-Dec-01 20:53 
GeneralRe: Problems scrolling in an edit box Pin
James R. Twine27-Dec-01 5:21
James R. Twine27-Dec-01 5:21 
GeneralRe: Problems scrolling in an edit box Pin
Fredrik Skog27-Dec-01 19:59
Fredrik Skog27-Dec-01 19:59 
GeneralRe: Problems scrolling in an edit box Pin
Fredrik Skog27-Dec-01 22:18
Fredrik Skog27-Dec-01 22:18 
GeneralRe: Problems scrolling in an edit box Pin
James R. Twine28-Dec-01 16:11
James R. Twine28-Dec-01 16:11 
GeneralRe: Problems scrolling in an edit box Pin
Fredrik Skog1-Jan-02 23:48
Fredrik Skog1-Jan-02 23:48 
James R. Twine wrote:
>If you are using the above code, and the text dissapears when you use SetSel(...),
>it might be due to the fact that your call to SetSel is incorrect, and is selecting the entire control.
>Then, the base CEdit::OnChar(...) gets called,
>which will replace the selection with whatever character was entered (a CR or LF);
>the result: no text in the control.



Ah, right you are.
It works if I remove the selection afterwards, naturally.
Thank you for the help, much appreciated!


Cheers,

/Fredrik

Do you Sonork? I do! 100.11430:PhatBoy

GeneralList of id's in a NetWork Pin
San21-Dec-01 0:16
San21-Dec-01 0:16 
GeneralTab Control for switching documents, like Office, VC++ etc. (Newbie) Pin
20-Dec-01 23:26
suss20-Dec-01 23:26 
GeneralRe: Tab Control for switching documents, like Office, VC++ etc. (Newbie) Pin
Michael P Butler20-Dec-01 23:45
Michael P Butler20-Dec-01 23:45 
GeneralRe: Tab Control for switching documents, like Office, VC++ etc. (Newbie) Pin
21-Dec-01 0:59
suss21-Dec-01 0:59 
GeneralChange the Bakground color of a Text Box Pin
San20-Dec-01 22:17
San20-Dec-01 22:17 
GeneralRe: Change the Bakground color of a Text Box Pin
Michael P Butler20-Dec-01 23:49
Michael P Butler20-Dec-01 23:49 
GeneralRe: Change the Bakground color of a Text Box Pin
James R. Twine21-Dec-01 6:45
James R. Twine21-Dec-01 6:45 
GeneralODBC Pin
HarrySolsem20-Dec-01 19:41
HarrySolsem20-Dec-01 19:41 
GeneralRe: ODBC Pin
Nish Nishant20-Dec-01 20:37
sitebuilderNish Nishant20-Dec-01 20:37 
GeneralGetting MSN list into dialog app Pin
Ashman20-Dec-01 19:27
Ashman20-Dec-01 19:27 
Generalmfc help file Pin
20-Dec-01 18:57
suss20-Dec-01 18:57 
GeneralRe: mfc help file Pin
Jon Hulatt20-Dec-01 23:30
Jon Hulatt20-Dec-01 23:30 
Generaleasy question Pin
cheb20-Dec-01 18:27
cheb20-Dec-01 18:27 
GeneralRe: easy question Pin
Nish Nishant20-Dec-01 18:51
sitebuilderNish Nishant20-Dec-01 18:51 
GeneralRe: easy question Pin
cheb20-Dec-01 18:54
cheb20-Dec-01 18:54 
GeneralRe: easy question Pin
Derek Waters20-Dec-01 18:52
Derek Waters20-Dec-01 18:52 
GeneralTAPI Problem Pin
Sandeep Shetty20-Dec-01 18:16
Sandeep Shetty20-Dec-01 18:16 

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.