CEdit创建

m_objCpointEditPostion.top = 0;
m_objCpointEditPostion.left = 0;
m_objCpointEditPostion.right = 200;
m_objCpointEditPostion.bottom = 100;
m_objEdit.Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP,m_objCpointEditPostion,this,IDE_EDIT_0);

获得控件标题,内容等。

GetWindowText 或者GetDlgItemText

CString ostrEdit;

GetActiveView()->GetDlgItem(IDE_EDIT_0)->GetWindowText(ostrEdit);

    MessageBox(ostrEdit);



GetWindowText所有都通用
GetDlgItemText是获得控件的文字

你可能感兴趣的:(CEdit创建)