![]() |
|
#1
|
|||
|
|||
How to update the child dialog boxHi! I am new to VC++. Right now, I have created a child dialog box using CDialog, and then what I want to do is to display a message (in form of text fileld - m_info)in the child dialog box when a button is clicked, where the displayed message is from the parent dialog box.
CPP / C++ / C Code:
I could not update the textfiled in the child dialog box, do I have to set up something in order to get the message from the parent dialog box? Thanks. Last edited by LuciWiz : 04-Apr-2005 at 23:56.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
|||
|
|||
|
You can use function
SetDlgItemText( int nID, LPCTSTR lpszString ); nID-Identifies the control whose text is to be set. lpszString-Points to a CString object or null-terminated string that contains the text to be copied to the control. |
Recent GIDBlog
Toyota - 2008 September Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dialog based application | hezyse | MS Visual C++ / MFC Forum | 1 | 20-Mar-2005 18:16 |
| How can I change the class of a dialog ? | Frandy | MS Visual C++ / MFC Forum | 0 | 28-Feb-2005 02:24 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 03:38 |
| controling dialog objects & multiple source files | omills | MS Visual C++ / MFC Forum | 0 | 14-Jul-2004 23:30 |
| Google Update and DeepCrawl Alert | JdS | Search Engine Optimization Forum | 24 | 16-Aug-2003 05:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The