Click here to Skip to main content
16,016,925 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static methods? Pin
Achim Klein11-Aug-05 2:33
Achim Klein11-Aug-05 2:33 
AnswerRe: static methods? Pin
toxcct11-Aug-05 3:30
toxcct11-Aug-05 3:30 
GeneralRe: static methods? Pin
Anonymous11-Aug-05 4:24
Anonymous11-Aug-05 4:24 
GeneralRe: static methods? Pin
sunit511-Aug-05 5:34
sunit511-Aug-05 5:34 
AnswerRe: static methods? Pin
sunit511-Aug-05 5:39
sunit511-Aug-05 5:39 
QuestionEnum "real" users Pin
peterchen11-Aug-05 1:37
peterchen11-Aug-05 1:37 
Question(Printer Driver)How to Hide Default Document Property sheet ? Pin
Anonymous11-Aug-05 0:51
Anonymous11-Aug-05 0:51 
QuestionHow can i get the length of a line in a multiline edit box? Pin
tl0825411-Aug-05 0:15
tl0825411-Aug-05 0:15 
D'Oh! | :doh: I'm trying to select a line of a multiline edit box. I've been using the LineLength function but it doesn't give me the correct number of characters of a line and i wonder why?. This is my code:

void CSubtitlesDlg::SelectLine(int Line)
{
int nLineIndex;
int nLength;

nLineIndex = m_ctrlSubtitlesList.LineIndex(Line-1);
nLength = m_ctrlSubtitlesList.LineLength();
m_ctrlSubtitlesList.SetSel(nLineIndex, nLineIndex + nLength, FALSE);
m_ctrlSubtitlesList.SetFocus();
}

AnswerRe: How can i get the length of a line in a multiline edit box? Pin
Achim Klein11-Aug-05 1:38
Achim Klein11-Aug-05 1:38 
GeneralWindows Device Manager Pin
nripun11-Aug-05 0:13
nripun11-Aug-05 0:13 
GeneralRe: Windows Device Manager Pin
Alexander M.,11-Aug-05 1:06
Alexander M.,11-Aug-05 1:06 
GeneralRe: Windows Device Manager Pin
nripun11-Aug-05 3:11
nripun11-Aug-05 3:11 
GeneralEdit Control highlight Pin
zhaopi10-Aug-05 22:30
zhaopi10-Aug-05 22:30 
GeneralRe: Edit Control highlight Pin
Phil J Pearson10-Aug-05 23:24
Phil J Pearson10-Aug-05 23:24 
GeneralRe: Edit Control highlight Pin
Eytukan10-Aug-05 23:29
Eytukan10-Aug-05 23:29 
GeneralRe: Edit Control highlight Pin
zhaopi11-Aug-05 17:02
zhaopi11-Aug-05 17:02 
GeneralSocket Pin
sunit510-Aug-05 22:19
sunit510-Aug-05 22:19 
GeneralRe: Socket Pin
vikas amin10-Aug-05 23:28
vikas amin10-Aug-05 23:28 
GeneralRe: Socket Pin
William.Wang11-Aug-05 0:38
William.Wang11-Aug-05 0:38 
GeneralRe: Socket Pin
Trollslayer11-Aug-05 1:16
mentorTrollslayer11-Aug-05 1:16 
GeneralRe: Socket Pin
sunit511-Aug-05 1:46
sunit511-Aug-05 1:46 
GeneralRe: Socket Pin
ThatsAlok11-Aug-05 3:59
ThatsAlok11-Aug-05 3:59 
GeneralEncoding Pin
Ali Tavakol10-Aug-05 22:13
Ali Tavakol10-Aug-05 22:13 
Generaloutlook account Pin
gecool10-Aug-05 21:16
gecool10-Aug-05 21:16 
GeneralRe: outlook account Pin
Jose Lamas Rios10-Aug-05 21:32
Jose Lamas Rios10-Aug-05 21:32 

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.