Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Driver Development Pin
Richard MacCutchan30-Jan-12 4:45
mveRichard MacCutchan30-Jan-12 4:45 
GeneralRe: Windows Driver Development Pin
Erudite_Eric1-Feb-12 0:46
Erudite_Eric1-Feb-12 0:46 
AnswerRe: Windows Driver Development Pin
Wes Aday30-Jan-12 3:15
professionalWes Aday30-Jan-12 3:15 
AnswerRe: Windows Driver Development Pin
JackDingler31-Jan-12 11:42
JackDingler31-Jan-12 11:42 
Questionproject Pin
rosalie tima28-Jan-12 1:48
rosalie tima28-Jan-12 1:48 
AnswerRe: project Pin
Software_Developer28-Jan-12 3:39
Software_Developer28-Jan-12 3:39 
AnswerRe: project Pin
Chris Losinger29-Jan-12 15:51
professionalChris Losinger29-Jan-12 15:51 
QuestionSetCursor position Pin
manju 327-Jan-12 23:22
manju 327-Jan-12 23:22 
Hi all,
I am trying to set the cursor for edit box to the next line:

Here is the code i am trying,

CEdit	m_TestCtrl;
CString	m_Test1;
void CTest::OnChangeEditTest() 
{
	 CString str,str1;
	UpdateData(TRUE);
	str1 = m_Test1;   // reading the value from edit box
	str1 += ":";          // Appending the value with ":"
	int nLength = m_TestCtrl.GetWindowTextLength();   //trying to get the Length of Text from EditControl
	m_TestCtrl.SetSel(nLength );              //trying to set the cursor after the character ":"
	m_Test1 = str1;                                   // Passing the appended value to edit Box
	UpdateData(FALSE);
}


SQL
It is appending,but the cursor is going to the first position.
Can anyone tell me where i am going wrong



Thank you
Manju
AnswerRe: SetCursor position Pin
David Crow28-Jan-12 4:18
David Crow28-Jan-12 4:18 
Questionretreving application name using file extension Pin
VCProgrammer27-Jan-12 22:35
VCProgrammer27-Jan-12 22:35 
AnswerRe: retreving application name using file extension Pin
David Crow28-Jan-12 4:25
David Crow28-Jan-12 4:25 
QuestionEstablishing a Certification Authority Pin
Bram van Kampen27-Jan-12 14:32
Bram van Kampen27-Jan-12 14:32 
Questionproblem with conversion of string to float Pin
materatsu27-Jan-12 12:22
materatsu27-Jan-12 12:22 
AnswerRe: problem with conversion of string to float Pin
«_Superman_»27-Jan-12 16:02
professional«_Superman_»27-Jan-12 16:02 
AnswerRe: problem with conversion of string to float Pin
gebri28-Jan-12 0:35
gebri28-Jan-12 0:35 
AnswerRe: problem with conversion of string to float Pin
Bram van Kampen28-Jan-12 14:27
Bram van Kampen28-Jan-12 14:27 
AnswerRe: problem with conversion of string to float Pin
materatsu30-Jan-12 5:51
materatsu30-Jan-12 5:51 
GeneralRe: problem with conversion of string to float Pin
David Crow30-Jan-12 6:46
David Crow30-Jan-12 6:46 
GeneralRe: problem with conversion of string to float Pin
Stefan_Lang31-Jan-12 2:28
Stefan_Lang31-Jan-12 2:28 
QuestionDetecting if process is killed. Pin
Code-o-mat27-Jan-12 11:29
Code-o-mat27-Jan-12 11:29 
AnswerRe: Detecting if process is killed. Pin
Richard Andrew x6427-Jan-12 12:08
professionalRichard Andrew x6427-Jan-12 12:08 
GeneralRe: Detecting if process is killed. Pin
Code-o-mat27-Jan-12 21:52
Code-o-mat27-Jan-12 21:52 
GeneralRe: Detecting if process is killed. Pin
jschell28-Jan-12 4:25
jschell28-Jan-12 4:25 
GeneralRe: Detecting if process is killed. Pin
Code-o-mat28-Jan-12 7:59
Code-o-mat28-Jan-12 7:59 
AnswerRe: Detecting if process is killed. Pin
Randor 28-Jan-12 4:59
professional Randor 28-Jan-12 4:59 

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.