Click here to Skip to main content
15,923,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: please...please... Pin
Le Ridder Noir21-Feb-01 22:03
Le Ridder Noir21-Feb-01 22:03 
GeneralRe: I know...ㅠㅠ Pin
21-Feb-01 22:09
suss21-Feb-01 22:09 
GeneralUpdate an array of strings in a DLL Pin
21-Feb-01 11:57
suss21-Feb-01 11:57 
GeneralRe: Update an array of strings in a DLL Pin
Julien22-Feb-01 16:22
Julien22-Feb-01 16:22 
GeneralRe: Update an array of strings in a DLL Pin
23-Feb-01 3:08
suss23-Feb-01 3:08 
GeneralCEdit::GetLine HELP!!! Pin
Antonio21-Feb-01 11:30
Antonio21-Feb-01 11:30 
GeneralRe: CEdit::GetLine HELP!!! Pin
l a u r e n21-Feb-01 20:53
l a u r e n21-Feb-01 20:53 
GeneralRe: CEdit::GetLine HELP!!! Pin
Julien22-Feb-01 16:35
Julien22-Feb-01 16:35 
int iLineNumber;
CString strLine;

//////////////////////////////////////////////////////////////
// Get the currently selected line number.
//////////////////////////////////////////////////////////////
iLineNumber = m_edit.LineFromChar(-1);

//////////////////////////////////////////////////////////////
// Get the text of the current line number.
//////////////////////////////////////////////////////////////
strLine = m_edit.GetLine(iLineNumber);

If you have just a normal CEdit control then GetWindowText will
get ALL the text for you.
Also of interest are LineIndex and LineLength.

Note that some of these methods return the 'position' in the string
where the new lines are and NOT the 'line number'.

Jules
GeneralSome help with rand()! Pin
21-Feb-01 11:25
suss21-Feb-01 11:25 
GeneralRe: Some help with rand()! Pin
Paolo Messina22-Feb-01 4:59
professionalPaolo Messina22-Feb-01 4:59 
GeneralMultidimentional CMap Pin
21-Feb-01 10:53
suss21-Feb-01 10:53 
GeneralRe: Multidimentional CMap Pin
10-Aug-01 6:49
suss10-Aug-01 6:49 
GeneralFloating Palette Bar Pin
21-Feb-01 10:08
suss21-Feb-01 10:08 
GeneralRe: Floating Palette Bar Pin
l a u r e n21-Feb-01 10:48
l a u r e n21-Feb-01 10:48 
GeneralRe: Floating Palette Bar Pin
Christian Graus21-Feb-01 12:37
protectorChristian Graus21-Feb-01 12:37 
GeneralListBox ... Pin
Hadi Rezaee21-Feb-01 8:09
Hadi Rezaee21-Feb-01 8:09 
GeneralRe: ListBox ... Pin
Christian Graus21-Feb-01 9:42
protectorChristian Graus21-Feb-01 9:42 
GeneralRe: ListBox ... Pin
l a u r e n21-Feb-01 10:21
l a u r e n21-Feb-01 10:21 
GeneralComboBox question Pin
David Burrows21-Feb-01 7:36
David Burrows21-Feb-01 7:36 
GeneralRe: ComboBox question Pin
Christian Graus21-Feb-01 9:46
protectorChristian Graus21-Feb-01 9:46 
GeneralRe: ComboBox question Pin
Matt Gullett21-Feb-01 10:55
Matt Gullett21-Feb-01 10:55 
GeneralHelp me! Pin
21-Feb-01 6:27
suss21-Feb-01 6:27 
GeneralRe: Help me! Pin
Christian Graus21-Feb-01 9:37
protectorChristian Graus21-Feb-01 9:37 
QuestionIs it possible to make a BitmapButton from a user defined region? Pin
eric kaminski21-Feb-01 3:51
eric kaminski21-Feb-01 3:51 
AnswerRe: Is it possible to make a BitmapButton from a user defined region? Pin
SriSubbu22-Feb-01 6:09
professionalSriSubbu22-Feb-01 6:09 

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.