Update of /cvsroot/anyedit/AnyEditv2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18250
Modified Files:
InputBox.cpp
Log Message:
Modified Input Box to select the default input text. You can go ahead and type in anything new, without deleting the default input.
Index: InputBox.cpp
===================================================================
RCS file: /cvsroot/anyedit/AnyEditv2/InputBox.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** InputBox.cpp 29 Jul 2004 07:35:03 -0000 1.5
--- InputBox.cpp 5 May 2005 10:35:56 -0000 1.6
***************
*** 91,99 ****
if (!m_sCaption.IsEmpty()){
SetWindowText(m_sCaption);
-
}
!
! GetDlgItem(IDC_EDIT)->SetFocus();
!
return FALSE;
}
--- 91,100 ----
if (!m_sCaption.IsEmpty()){
SetWindowText(m_sCaption);
}
! CEdit * ceInput = (CEdit *)GetDlgItem(IDC_EDIT);
! CString szInput;
! ceInput->GetWindowText(szInput);
! ceInput->SetSel(0,szInput.GetLength());
! ceInput->SetFocus();
return FALSE;
}
|