If two indexes are equal, no text is currently selected.
.ReplaceSel()
If one or more characters are selected when ReplaceSel is called, the inserted text replaces the selected text; otherwise, the new text is inserted at the current caret position.
...
void CUrlFileDlg::OnMaxtextProgress()
{
// TODO: Add your control notification handler code here
m_editProgress.SetWindowText(NULL);
}
// place a caret at the end of the text and append the text to the edit box
const int nLen = m_editProgress.GetWindowTextLength();
m_editProgress.SetSel(nLen, nLen);
m_editProgress.ReplaceSel(strStatus);
CRichEditCtrl
.GetTextLength()
.SetSel()
.GetSelText()
.ReplaceSel()
CXEditPrompt
.SetPromptText()
.SetPromptColor()
알파벳 문자만 입력
class CCharEdit : public CEdit
{
// Construction
public:
CCharEdit();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCharEdit)
//}}AFX_VIRTUAL