Click here to Skip to main content
15,890,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to add check boxes Pin
Hamid_RT5-Feb-07 20:28
Hamid_RT5-Feb-07 20:28 
AnswerRe: how to add check boxes Pin
ThatsAlok6-Feb-07 19:55
ThatsAlok6-Feb-07 19:55 
QuestionMessage Map Return types Pin
G.DHANASEKAR5-Feb-07 19:18
G.DHANASEKAR5-Feb-07 19:18 
AnswerRe: Message Map Return types Pin
Don Box5-Feb-07 19:46
Don Box5-Feb-07 19:46 
AnswerRe: Message Map Return types Pin
Roger Stoltz5-Feb-07 22:58
Roger Stoltz5-Feb-07 22:58 
AnswerRe: Message Map Return types Pin
Mark Salsbery6-Feb-07 8:08
Mark Salsbery6-Feb-07 8:08 
AnswerRe: Message Map Return types Pin
ThatsAlok6-Feb-07 19:56
ThatsAlok6-Feb-07 19:56 
QuestionSet Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 19:08
Sonani Prakash5-Feb-07 19:08 
There are two seperate application dialog.
on one dialog there is one text box as well as check box and on other dialog
there is one button.

now if I press on second dialog's button,then some text should be set on
first dialog's text box and checkbox.

I am able to set text of checkbox but not able to set text into edit box.
I used logic like following
CWnd* pWnd = CWnd::FindWindow(NULL,_T("TestDialog"));
if (pWnd)
{
pWnd->ShowWindow(SW_SHOW);
pWnd->SetForegroundWindow();
pWnd->SetDlgItemText(1003,"Hello");
pWnd->SetDlgItemText(1001,"Hello111");

}

Can anybody tell me how to set text on other application dialog's edit box

Thanks,
Prakash

sonani prakash

AnswerRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 19:20
Hamid_RT5-Feb-07 19:20 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 19:28
Sonani Prakash5-Feb-07 19:28 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 19:34
Hamid_RT5-Feb-07 19:34 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 19:41
Sonani Prakash5-Feb-07 19:41 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 20:07
Hamid_RT5-Feb-07 20:07 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Sonani Prakash5-Feb-07 20:59
Sonani Prakash5-Feb-07 20:59 
GeneralRe: Set Edit Box Text from Different Dialog Pin
Hamid_RT5-Feb-07 21:22
Hamid_RT5-Feb-07 21:22 
AnswerRe: Set Edit Box Text from Different Dialog Pin
ThatsAlok6-Feb-07 19:57
ThatsAlok6-Feb-07 19:57 
Questionpopulating datagrid... Pin
meg15-Feb-07 18:59
meg15-Feb-07 18:59 
AnswerRe: populating datagrid... Pin
Hamid_RT5-Feb-07 19:44
Hamid_RT5-Feb-07 19:44 
GeneralRe: populating datagrid... Pin
meg15-Feb-07 21:34
meg15-Feb-07 21:34 
GeneralRe: populating datagrid... Pin
meg16-Feb-07 0:04
meg16-Feb-07 0:04 
GeneralRe: populating datagrid... Pin
Hamid_RT6-Feb-07 5:24
Hamid_RT6-Feb-07 5:24 
GeneralRe: populating datagrid... Pin
meg16-Feb-07 16:43
meg16-Feb-07 16:43 
QuestionRe: populating datagrid... Pin
Hamid_RT6-Feb-07 19:56
Hamid_RT6-Feb-07 19:56 
AnswerRe: populating datagrid... Pin
ThatsAlok6-Feb-07 19:58
ThatsAlok6-Feb-07 19:58 
GeneralRe: populating datagrid... Pin
Hamid_RT6-Feb-07 20:00
Hamid_RT6-Feb-07 20:00 

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.