How to change parents Text prperty label from child dialog box
-
Hi, My query is MFC related to Dialog box. I want to change the Text property label of parent dialog box from its child dialog file. How to change Text lable of parent dialog box from its child dialog file? Thanks in advance -Ramesh.
Use GetParent() from the Child Dialog. GetParent()->SetWindowText("New title");:-D
Jesus Loves You and Me :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
-
Use GetParent() from the Child Dialog. GetParent()->SetWindowText("New title");:-D
Jesus Loves You and Me :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
-
Thanks, But how to specify the Parents perticular Text property ID to change its lable from its child dialog file. -Ramesh
Didn't get you. Be more clear. May be an illustration would do.
Jesus Loves You and Me :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
-
Didn't get you. Be more clear. May be an illustration would do.
Jesus Loves You and Me :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
I have a Text control on parent dialog box its ID is say IDC_TEXT1 & its Caption is "MY NAME". I want to change its caption from its another child dialog box file. When I click on child TAB page then parent IDC_TEXT1 caption should change to "NEW NAME". Thanks -Ramesh
-
I have a Text control on parent dialog box its ID is say IDC_TEXT1 & its Caption is "MY NAME". I want to change its caption from its another child dialog box file. When I click on child TAB page then parent IDC_TEXT1 caption should change to "NEW NAME". Thanks -Ramesh
((CYourDialogClass*)GetParent())->GetDlgItem(IDC_TEXT1)->SetWindowText("NEW NAME");
Jesus Loves You and Me :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
-
((CYourDialogClass*)GetParent())->GetDlgItem(IDC_TEXT1)->SetWindowText("NEW NAME");
Jesus Loves You and Me :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
-
Hi, My query is MFC related to Dialog box. I want to change the Text property label of parent dialog box from its child dialog file. How to change Text lable of parent dialog box from its child dialog file? Thanks in advance -Ramesh.
Is the child dialog a model dialog or modeless dialog ? If its a modeless, did you pass the the parent window to the modeless dialog ?
-Prakash
-
Is the child dialog a model dialog or modeless dialog ? If its a modeless, did you pass the the parent window to the modeless dialog ?
-Prakash