Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3433-Oct-11 4:45
antonio3433-Oct-11 4:45 
GeneralRe: Show information in the same dialog after press diferent button Pin
Richard MacCutchan3-Oct-11 5:04
mveRichard MacCutchan3-Oct-11 5:04 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3433-Oct-11 5:12
antonio3433-Oct-11 5:12 
GeneralRe: Show information in the same dialog after press diferent button Pin
Richard MacCutchan3-Oct-11 6:37
mveRichard MacCutchan3-Oct-11 6:37 
GeneralRe: Show information in the same dialog after press diferent button Pin
David Crow3-Oct-11 6:50
David Crow3-Oct-11 6:50 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3433-Oct-11 6:59
antonio3433-Oct-11 6:59 
GeneralRe: Show information in the same dialog after press diferent button Pin
David Crow3-Oct-11 7:24
David Crow3-Oct-11 7:24 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3433-Oct-11 7:41
antonio3433-Oct-11 7:41 
Ok, finally, I got my answer.

I solved of this way:

I made a public variable of my dialog class, where is the edit control, in the class view, and I made the windows in the builder. After, when I press a button, I did :

void Cprueba4View::OnButton3()
{
	
	CString cadena;
	dlgDesc->GetDlgItemText(IDC_EDIT1, cadena);
	cadena += "Hello other time ";
	dlgDesc->SetDlgItemText(IDC_EDIT1, cadena);
	dlgDesc->SetFocus();
}


But now, I have another problem. When I maximize the windows dialog, only it's maximized the windows and not the edit control. why? how can I maximize the windows and the edit control at the same time?
I used
dlgDesc->ShowWindow(SW_MAXIMIZE);
to maximized
QuestionRe: Show information in the same dialog after press diferent button Pin
David Crow3-Oct-11 8:19
David Crow3-Oct-11 8:19 
AnswerRe: Show information in the same dialog after press diferent button Pin
antonio3433-Oct-11 8:35
antonio3433-Oct-11 8:35 
GeneralRe: Show information in the same dialog after press diferent button Pin
David Crow3-Oct-11 9:20
David Crow3-Oct-11 9:20 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3433-Oct-11 12:13
antonio3433-Oct-11 12:13 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3434-Oct-11 1:27
antonio3434-Oct-11 1:27 
Questionpositive values count WHILE heap sort Pin
sadas232341s1-Oct-11 22:51
sadas232341s1-Oct-11 22:51 
AnswerRe: positive values count WHILE heap sort Pin
André Kraak1-Oct-11 22:59
André Kraak1-Oct-11 22:59 
GeneralRe: positive values count WHILE heap sort Pin
sadas232341s2-Oct-11 21:55
sadas232341s2-Oct-11 21:55 
QuestionRe: positive values count WHILE heap sort Pin
David Crow3-Oct-11 7:22
David Crow3-Oct-11 7:22 
AnswerRe: positive values count WHILE heap sort Pin
sadas232341s3-Oct-11 8:39
sadas232341s3-Oct-11 8:39 
QuestionRe: positive values count WHILE heap sort Pin
David Crow3-Oct-11 9:27
David Crow3-Oct-11 9:27 
QuestionPhysical Drive Size Pin
john56321-Oct-11 22:08
john56321-Oct-11 22:08 
GeneralRe: Physical Drive Size Pin
Code-o-mat1-Oct-11 22:48
Code-o-mat1-Oct-11 22:48 
AnswerRe: Physical Drive Size Pin
Software_Developer2-Oct-11 0:29
Software_Developer2-Oct-11 0:29 
QuestionHow can program tell that itself is running as admin? Pin
Brandon-X120001-Oct-11 3:07
Brandon-X120001-Oct-11 3:07 
AnswerRe: How can program tell that itself is running as admin? Pin
Chris Losinger1-Oct-11 4:10
professionalChris Losinger1-Oct-11 4:10 
GeneralRe: How can program tell that itself is running as admin? Pin
Brandon-X120001-Oct-11 5:38
Brandon-X120001-Oct-11 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.