Click here to Skip to main content
15,860,972 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: System tray Pin
Jochen Arndt6-Dec-17 23:15
professionalJochen Arndt6-Dec-17 23:15 
QuestionHow to pass size of an array from command line Pin
User 135094506-Dec-17 18:09
professionalUser 135094506-Dec-17 18:09 
AnswerRe: How to pass size of an array from command line Pin
Rick York6-Dec-17 18:52
mveRick York6-Dec-17 18:52 
GeneralRe: How to pass size of an array from command line Pin
User 135094506-Dec-17 20:07
professionalUser 135094506-Dec-17 20:07 
GeneralRe: How to pass size of an array from command line Pin
Rick York6-Dec-17 20:31
mveRick York6-Dec-17 20:31 
GeneralRe: How to pass size of an array from command line Pin
User 135094506-Dec-17 20:32
professionalUser 135094506-Dec-17 20:32 
GeneralRe: How to pass size of an array from command line Pin
CPallini7-Dec-17 3:19
mveCPallini7-Dec-17 3:19 
QuestionCEdit::LineLength returning zero Pin
ForNow6-Dec-17 13:16
ForNow6-Dec-17 13:16 
Hi
I want to limit the number of characters on a line in a multiline edit control

I figured I would do CEdit::linelength and divide that by rect.right

From getclientrect that would get me the number of pixels per character

I would then multiply it by the number of characters I want on a line however

Cedit:Linelength return zero

my edit control is declared CEdit mycontrol

I know under the covers it does a SendMessage EM_LINELENGTH

Is there a issue that I dont have a message map

The character index is 0
AnswerRe: CEdit::LineLength returning zero Pin
Rick York6-Dec-17 14:41
mveRick York6-Dec-17 14:41 
GeneralRe: CEdit::LineLength returning zero Pin
ForNow6-Dec-17 15:51
ForNow6-Dec-17 15:51 
GeneralRe: CEdit::LineLength returning zero Pin
Rick York6-Dec-17 19:00
mveRick York6-Dec-17 19:00 
GeneralRe: CEdit::LineLength returning zero Pin
ForNow6-Dec-17 20:39
ForNow6-Dec-17 20:39 
QuestionRe: CEdit::LineLength returning zero Pin
Richard MacCutchan6-Dec-17 22:14
mveRichard MacCutchan6-Dec-17 22:14 
AnswerRe: CEdit::LineLength returning zero Pin
ForNow6-Dec-17 23:49
ForNow6-Dec-17 23:49 
GeneralRe: CEdit::LineLength returning zero Pin
Victor Nijegorodov7-Dec-17 0:39
Victor Nijegorodov7-Dec-17 0:39 
GeneralRe: CEdit::LineLength returning zero Pin
ForNow7-Dec-17 1:53
ForNow7-Dec-17 1:53 
GeneralRe: CEdit::LineLength returning zero Pin
Victor Nijegorodov7-Dec-17 8:40
Victor Nijegorodov7-Dec-17 8:40 
GeneralRe: CEdit::LineLength returning zero Pin
ForNow7-Dec-17 8:51
ForNow7-Dec-17 8:51 
GeneralRe: CEdit::LineLength returning zero Pin
Richard MacCutchan7-Dec-17 22:16
mveRichard MacCutchan7-Dec-17 22:16 
SuggestionRe: CEdit::LineLength returning zero Pin
David Crow7-Dec-17 9:47
David Crow7-Dec-17 9:47 
GeneralRe: CEdit::LineLength returning zero Pin
ForNow7-Dec-17 9:55
ForNow7-Dec-17 9:55 
GeneralRe: CEdit::LineLength returning zero The Answer is CMFCMaskEdit Class Pin
ForNow8-Dec-17 7:48
ForNow8-Dec-17 7:48 
QuestionCalling DLL method from multi-thread Pin
shakumar_215-Dec-17 23:23
shakumar_215-Dec-17 23:23 
QuestionRe: Calling DLL method from multi-thread Pin
Richard MacCutchan5-Dec-17 23:54
mveRichard MacCutchan5-Dec-17 23:54 
AnswerRe: Calling DLL method from multi-thread Pin
Victor Nijegorodov6-Dec-17 8:23
Victor Nijegorodov6-Dec-17 8:23 

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.