Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ Class Function Pointer Problem Pin
Richard MacCutchan3-Oct-11 7:00
mveRichard MacCutchan3-Oct-11 7:00 
AnswerRe: found error in line 33: (receiver-> *action)(num); Pin
Software_Developer3-Oct-11 7:20
Software_Developer3-Oct-11 7:20 
AnswerRe: C++ Class Function Pointer Problem Pin
TheGreatAndPowerfulOz3-Oct-11 8:03
TheGreatAndPowerfulOz3-Oct-11 8:03 
GeneralRe: C++ Class Function Pointer Problem Pin
Falconapollo3-Oct-11 18:22
Falconapollo3-Oct-11 18:22 
QuestionRookie Alert! Need Help Learning C Pin
Veeshal Beotra2-Oct-11 19:49
Veeshal Beotra2-Oct-11 19:49 
AnswerRe: Rookie Alert! Need Help Learning C Pin
Madhu Nair2-Oct-11 20:30
Madhu Nair2-Oct-11 20:30 
AnswerRe: Rookie Alert! Need Help Learning C Pin
MSTzhao2-Oct-11 21:34
MSTzhao2-Oct-11 21:34 
AnswerRe: Rookie Alert! Need Help Learning C Pin
Richard MacCutchan2-Oct-11 21:42
mveRichard MacCutchan2-Oct-11 21:42 
AnswerRe: Rookie Alert! Need Help Learning C Pin
ThatsAlok2-Oct-11 23:42
ThatsAlok2-Oct-11 23:42 
AnswerRe: Rookie Alert! Need Help Learning C Pin
TheGreatAndPowerfulOz3-Oct-11 7:22
TheGreatAndPowerfulOz3-Oct-11 7:22 
GeneralRe: Rookie Alert! Need Help Learning C Pin
Veeshal Beotra4-Oct-11 6:35
Veeshal Beotra4-Oct-11 6:35 
AnswerRe: Rookie Alert! Need Help Learning C Pin
Legor4-Oct-11 1:43
Legor4-Oct-11 1:43 
GeneralRe: Rookie Alert! Need Help Learning C Pin
Veeshal Beotra4-Oct-11 6:37
Veeshal Beotra4-Oct-11 6:37 
QuestionDrawing text issue Pin
csrss2-Oct-11 9:44
csrss2-Oct-11 9:44 
AnswerRe: Drawing text issue Pin
KingsGambit2-Oct-11 18:30
KingsGambit2-Oct-11 18:30 
GeneralRe: Drawing text issue Pin
csrss3-Oct-11 5:56
csrss3-Oct-11 5:56 
AnswerRe: Drawing text issue Pin
john56322-Oct-11 19:51
john56322-Oct-11 19:51 
GeneralRe: Drawing text issue Pin
csrss3-Oct-11 6:58
csrss3-Oct-11 6:58 
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 
ok...when you press a button show a modeless dialog with a edit control to show text.

Class view:

void Cprueba4View::OnButton2()
{
CEjemplo *dlgDesc;
dlgDesc = new CEjemplo();
dlgDesc->Create( IDD_DIALOG1 ,GetDesktopWindow());
dlgDesc->ShowWindow(1);
}

In class CEjemplo:

void CEjemplo::ShowText(void)
{
CString cadena= _T("Hi, it is a example");
m_Edit.SetWindowTextW(cadena);
}


But I need, to show text from other class in the same dialog, that mean, the text, it will be added in the same windows when I press other button.
Every button are in the ribbon.

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.