Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to confirm the tree item selected Pin
Maximilien19-Aug-05 7:10
Maximilien19-Aug-05 7:10 
GeneralRe: how to confirm the tree item selected Pin
try8819-Aug-05 7:40
try8819-Aug-05 7:40 
GeneralRe: how to confirm the tree item selected Pin
David Crow19-Aug-05 7:52
David Crow19-Aug-05 7:52 
GeneralRe: how to confirm the tree item selected Pin
Maximilien19-Aug-05 7:52
Maximilien19-Aug-05 7:52 
GeneralRe: how to confirm the tree item selected Pin
try8819-Aug-05 8:43
try8819-Aug-05 8:43 
Generalquestion related to drivers Pin
gamitech19-Aug-05 3:46
gamitech19-Aug-05 3:46 
GeneralRe: question related to drivers Pin
fat_boy19-Aug-05 4:05
fat_boy19-Aug-05 4:05 
Generalupdating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 2:17
kk_vp19-Aug-05 2:17 
Hi,

I have a CWinApp from where I start a dialog box. In the dialog box I have an Edit box and other controls.
In the Oncreate of dialogbox, I am registering a callback function.
The function say f() to be called is in the same cpp file as the app. The callback procedure is done in a DLL.

I need to set text in the Dialog box's edit box from this function.

the function is written as below:
I tried AfxGetMainWnd() and use GetDlgItemText. but that doesn't work.
Even Messagebox doesn't show-up, same time I don't get errors also

PLEASE GIVE ME A SOLUTION !!!!!!!!!

int
WINAPI
MyNotify( )
{
CWnd CMainWindow;
CWnd *pMainWnd = (CWnd *)AfxGetMainWnd();
CWinApp *pAppWnd = AfxGetApp();
pMainWnd->MessageBox("in call back");
pMainWnd->GetDlgItemText(IDC_EDITCustLog,szCustLogA);
szCustLogA += "\r\n-- in call back --";
pMainWnd->SetDlgItemText(IDC_EDITLog, szCustLogA);
return TRUE;
}


- KK
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
David Crow19-Aug-05 2:28
David Crow19-Aug-05 2:28 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:04
kk_vp19-Aug-05 4:04 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
David Crow19-Aug-05 4:21
David Crow19-Aug-05 4:21 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:29
kk_vp19-Aug-05 4:29 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
David Crow19-Aug-05 4:34
David Crow19-Aug-05 4:34 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
Jose Lamas Rios19-Aug-05 2:44
Jose Lamas Rios19-Aug-05 2:44 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops19-Aug-05 2:49
MailtoGops19-Aug-05 2:49 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
gamitech19-Aug-05 3:33
gamitech19-Aug-05 3:33 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:05
kk_vp19-Aug-05 4:05 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
ThatsAlok21-Aug-05 18:53
ThatsAlok21-Aug-05 18:53 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp24-Aug-05 0:31
kk_vp24-Aug-05 0:31 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops19-Aug-05 4:26
MailtoGops19-Aug-05 4:26 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:32
kk_vp19-Aug-05 4:32 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops22-Aug-05 0:23
MailtoGops22-Aug-05 0:23 
GeneralMIMESniffer.DLL MIME to HTML Conversion Problem ( if MIME tag starts with <DIV>,<P> or <UL> Pin
chandan kumar19-Aug-05 2:08
chandan kumar19-Aug-05 2:08 
GeneralRe: MIMESniffer.DLL MIME to HTML Conversion Problem ( if MIME tag starts with <DIV>,<P> or <UL> Pin
Jose Lamas Rios19-Aug-05 2:55
Jose Lamas Rios19-Aug-05 2:55 
GeneralMIMESniffer.dll MIME to HTML conversion problem Pin
chandan kumar19-Aug-05 2:06
chandan kumar19-Aug-05 2:06 

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.