VC:CEdit类

从属性中选择多选:

 

       CString str;

       m_Edit.GetWindowText(str);

       if(str=="")

       {

              m_Edit2.SetSel(0,-1);

              m_Edit2.ReplaceSel("");

       }

       else

       {

              m_Edit.SetSel(0,-1);

              m_Edit.Copy();

              m_Edit.ReplaceSel("");

              m_Edit2.SetSel(0,-1);

              m_Edit2.ReplaceSel("");

              m_Edit2.Paste();

       }

 

}

你可能感兴趣的:(it)