ayudaaaaaa!!!!!!!!!!!!
Publicado por inma (5 intervenciones) el 13/06/2003 09:12:14
Necesito poner un editbox vacio (en visual c++),pero no se como.He intentado varias formas pero me dan errores o no me sale.
He probado esto:
CEdit* pEdit;
pEdit->GetDlgItem(hOutWnd,ID_OUTBOX);
pEdit->SetSel(0,-1);
pEdit->Clear();
y me dan los siguientes errores:
error C2065: 'CEdit' : undeclared identifier
error C2065: 'pEdit' : undeclared identifier
warning C4552: '*' : operator has no effect; expected operator with side-effect
error C2223: left of '->GetDlgItem' must point to struct/union
error C2223: left of '->SetSel' must point to struct/union
error C2223: left of '->Clear' must point to struct/union
tambien he probado esto y nada:
SetWindowText (hOutWnd, (char *)WM_CLEAR);
SendMessage(hOutWnd,WM_SETTEXT,0,"");
SetWindowText(hOutWnd,"");
pEdit->GetDlgItem (ID_OUTBOX);
pEdit->SetWindowText("");
¿me podrias ayudar?.Gracias.
He probado esto:
CEdit* pEdit;
pEdit->GetDlgItem(hOutWnd,ID_OUTBOX);
pEdit->SetSel(0,-1);
pEdit->Clear();
y me dan los siguientes errores:
error C2065: 'CEdit' : undeclared identifier
error C2065: 'pEdit' : undeclared identifier
warning C4552: '*' : operator has no effect; expected operator with side-effect
error C2223: left of '->GetDlgItem' must point to struct/union
error C2223: left of '->SetSel' must point to struct/union
error C2223: left of '->Clear' must point to struct/union
tambien he probado esto y nada:
SetWindowText (hOutWnd, (char *)WM_CLEAR);
SendMessage(hOutWnd,WM_SETTEXT,0,"");
SetWindowText(hOutWnd,"");
pEdit->GetDlgItem (ID_OUTBOX);
pEdit->SetWindowText("");
¿me podrias ayudar?.Gracias.
Valora esta pregunta


0