Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Highlighting Control based on Selection Pin
Jochen Arndt27-Sep-12 5:04
professionalJochen Arndt27-Sep-12 5:04 
AnswerRe: Highlighting Control based on Selection Pin
Marius Bancila1-Oct-12 22:12
professionalMarius Bancila1-Oct-12 22:12 
Questionhow to use the outside class Pin
yu-jian27-Sep-12 3:18
yu-jian27-Sep-12 3:18 
AnswerRe: how to use the outside class Pin
David Crow27-Sep-12 3:27
David Crow27-Sep-12 3:27 
QuestionPrinting with CRichEditCtrl control Pin
sdancer7526-Sep-12 23:05
sdancer7526-Sep-12 23:05 
AnswerRe: Printing with CRichEditCtrl control Pin
sdancer755-Oct-12 3:55
sdancer755-Oct-12 3:55 
GeneralRe: Printing with CRichEditCtrl control Pin
chaau7-Oct-12 18:44
chaau7-Oct-12 18:44 
GeneralRe: Printing with CRichEditCtrl control Pin
sdancer757-Oct-12 20:21
sdancer757-Oct-12 20:21 
Thank you Andrew,

The offending code was the
C++
GetTextLength()


that it should be changed the way you showed me in your example with :

lTextLength = GetTextLengthEx(GTL_PRECISE | GTL_NUMCHARS);


I didn't bothered until now, with the GetTextLengthEx and I had a really hard time with this functionality. Now it works that way it should be.


MSDN reports :
GetTextLengthEx provides additional ways of determining the length of the text. It supports the Rich Edit 2.0 functionality. For more information, see About Rich Edit Controls in the Platform SDK.

My very best regards for your help,
George
sdancer75

QuestionQuality based Video encoding in H.264 Codec Pin
Ajesh Kumar.T.T26-Sep-12 21:01
Ajesh Kumar.T.T26-Sep-12 21:01 
QuestionHow to Convert palette buffer to RGB buffer Pin
Ajesh Kumar.T.T26-Sep-12 21:00
Ajesh Kumar.T.T26-Sep-12 21:00 
AnswerRe: How to Convert palette buffer to RGB buffer Pin
CPallini26-Sep-12 22:09
mveCPallini26-Sep-12 22:09 
QuestionDialogBox 64bit ? Pin
Smart Arab26-Sep-12 0:07
Smart Arab26-Sep-12 0:07 
AnswerRe: DialogBox 64bit ? Pin
Richard MacCutchan26-Sep-12 2:42
mveRichard MacCutchan26-Sep-12 2:42 
QuestionRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 3:40
mveCPallini26-Sep-12 3:40 
AnswerRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 5:01
Smart Arab26-Sep-12 5:01 
GeneralRe: DialogBox 64bit ? Pin
Richard MacCutchan26-Sep-12 5:12
mveRichard MacCutchan26-Sep-12 5:12 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 5:54
Smart Arab26-Sep-12 5:54 
GeneralRe: DialogBox 64bit ? Pin
Jochen Arndt26-Sep-12 6:10
professionalJochen Arndt26-Sep-12 6:10 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 22:45
Smart Arab26-Sep-12 22:45 
GeneralRe: DialogBox 64bit ? Pin
Richard MacCutchan26-Sep-12 6:29
mveRichard MacCutchan26-Sep-12 6:29 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 22:42
Smart Arab26-Sep-12 22:42 
GeneralRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 11:47
mveCPallini26-Sep-12 11:47 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 22:39
Smart Arab26-Sep-12 22:39 
GeneralRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 22:45
mveCPallini26-Sep-12 22:45 
QuestionHow to make slider movement smooth in MFC.? Pin
mbatra3125-Sep-12 20:39
mbatra3125-Sep-12 20:39 

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.