Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShow information in the same dialog after press diferent button Pin
antonio3432-Oct-11 6:23
antonio3432-Oct-11 6:23 
AnswerRe: Show information in the same dialog after press diferent button Pin
André Kraak2-Oct-11 7:06
André Kraak2-Oct-11 7:06 
AnswerRe: Show information in the same dialog after press diferent button Pin
Software_Developer2-Oct-11 10:24
Software_Developer2-Oct-11 10:24 
GeneralRe: Show information in the same dialog after press diferent button Pin
Richard MacCutchan2-Oct-11 22:57
mveRichard MacCutchan2-Oct-11 22:57 
GeneralRe: Show information in the same dialog after press diferent button Pin
Software_Developer2-Oct-11 23:44
Software_Developer2-Oct-11 23:44 
AnswerRe: Show information in the same dialog after press diferent button Pin
Richard MacCutchan2-Oct-11 21:35
mveRichard MacCutchan2-Oct-11 21:35 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3432-Oct-11 22:01
antonio3432-Oct-11 22:01 
AnswerRe: Show information in the same dialog after press diferent button Pin
Madhu Nair2-Oct-11 22:11
Madhu Nair2-Oct-11 22:11 
antonio343 wrote:
I need, to show text from other class in the same dialog

How about making the ShowText function as public and pass a CString variable ;
C++
void CEjemplo::ShowText(CString strText)
 {
  //CString cadena= _T("Hi, it is a example");
  m_Edit.SetWindowTextW(strText);
  //Add this to invoke DDX updation
  UpdateData(FALSE);
 }


call the public function of CEjemplo object as,

C++
void CSomeOtherClass::ShowText()
{
 CEjemplo oEjemplo;
 CSting strText(_T("Some text from other class"));
 oEjemplo.ShowText(strText);
}

GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3432-Oct-11 22:45
antonio3432-Oct-11 22:45 
GeneralRe: Show information in the same dialog after press diferent button Pin
Richard MacCutchan2-Oct-11 22:59
mveRichard MacCutchan2-Oct-11 22:59 
GeneralRe: Show information in the same dialog after press diferent button Pin
antonio3432-Oct-11 23:10
antonio3432-Oct-11 23:10 
GeneralRe: Show information in the same dialog after press diferent button Pin
Richard MacCutchan2-Oct-11 23:45
mveRichard MacCutchan2-Oct-11 23:45 
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 
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 

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.