Click here to Skip to main content
15,887,930 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMFC and Unicode Pin
mtzlplyk4-Jan-08 3:40
mtzlplyk4-Jan-08 3:40 
GeneralRe: MFC and Unicode Pin
Matthew Faithfull4-Jan-08 4:05
Matthew Faithfull4-Jan-08 4:05 
GeneralRe: MFC and Unicode Pin
mtzlplyk4-Jan-08 4:36
mtzlplyk4-Jan-08 4:36 
QuestionRe: MFC and Unicode Pin
Matthew Faithfull4-Jan-08 5:51
Matthew Faithfull4-Jan-08 5:51 
GeneralRe: MFC and Unicode Pin
mtzlplyk4-Jan-08 9:13
mtzlplyk4-Jan-08 9:13 
GeneralChange in rich edit control behaviour with EM_EXSETSEL / SetSel Pin
Paul Vickery4-Jan-08 3:04
professionalPaul Vickery4-Jan-08 3:04 
GeneralRe: Change in rich edit control behaviour with EM_EXSETSEL / SetSel Pin
Vaclav_4-Jan-08 4:14
Vaclav_4-Jan-08 4:14 
GeneralRe: Change in rich edit control behaviour with EM_EXSETSEL / SetSel Pin
Paul Vickery8-Jan-08 0:00
professionalPaul Vickery8-Jan-08 0:00 
Thanks for your reply. It's not that - I've found it:

VC6 used RichEdit 1.0 controls by default, whereas VS8 uses RichEdit 2.0 controls by default, so that is where the difference lies.

Version 1.0 seems to count line breaks as 2 chars, whereas 2.0 counts them as 1 char. I was getting my positions from my CString, which contains CR+LFs so counts line breaks as 2 chars.

I have changed my code to use the Find facility (EM_FINDTEXT/EM_FINDTEXTEX) in the RichEdit control, and all is now OK. (Not really sure why I didn't just use that in the first place!)


"The way of a fool seems right to him, but a wise man listens to advice" - Proverbs 12:15 (NIV)

GeneralRe: Change in rich edit control behaviour with EM_EXSETSEL / SetSel Pin
Vaclav_8-Jan-08 6:55
Vaclav_8-Jan-08 6:55 
QuestionRe: Change in rich edit control behaviour with EM_EXSETSEL / SetSel Pin
Mark Salsbery4-Jan-08 6:56
Mark Salsbery4-Jan-08 6:56 
GeneralRe: Change in rich edit control behaviour with EM_EXSETSEL / SetSel Pin
Paul Vickery9-Jan-08 4:49
professionalPaul Vickery9-Jan-08 4:49 
GeneralSaving settings \ Remembering settings after reboot Pin
thes3cr3t14-Jan-08 2:32
thes3cr3t14-Jan-08 2:32 
GeneralRe: Saving settings \ Remembering settings after reboot Pin
CPallini4-Jan-08 2:45
mveCPallini4-Jan-08 2:45 
GeneralRe: Saving settings \ Remembering settings after reboot Pin
Rajesh R Subramanian4-Jan-08 5:36
professionalRajesh R Subramanian4-Jan-08 5:36 
GeneralRe: Saving settings \ Remembering settings after reboot Pin
Hamid_RT4-Jan-08 18:12
Hamid_RT4-Jan-08 18:12 
GeneralCStatusBar Pin
vethathiri4-Jan-08 1:39
vethathiri4-Jan-08 1:39 
QuestionRe: CStatusBar Pin
David Crow4-Jan-08 2:52
David Crow4-Jan-08 2:52 
JokeRe: CStatusBar Pin
CPallini4-Jan-08 3:09
mveCPallini4-Jan-08 3:09 
GeneralRe: CStatusBar Pin
David Crow4-Jan-08 3:34
David Crow4-Jan-08 3:34 
GeneralRe: CStatusBar Pin
CPallini4-Jan-08 3:46
mveCPallini4-Jan-08 3:46 
JokeRe: CStatusBar Pin
Mark Salsbery4-Jan-08 7:04
Mark Salsbery4-Jan-08 7:04 
GeneralRe: CStatusBar Pin
Mark Salsbery4-Jan-08 7:11
Mark Salsbery4-Jan-08 7:11 
GeneralRe: CStatusBar Pin
vethathiri6-Jan-08 18:46
vethathiri6-Jan-08 18:46 
GeneralRe: CStatusBar Pin
Hamid_RT4-Jan-08 18:15
Hamid_RT4-Jan-08 18:15 
GeneralWindows Console Applications Pin
l_d4-Jan-08 1:36
l_d4-Jan-08 1:36 

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.