Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?

Answers were Sorted based on User's Feedback



In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Anot..

Answer / alim

You can use Findwindow api to get the handle of other application and then use that handle n send message.

Is This Answer Correct ?    2 Yes 0 No

In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Anot..

Answer / ali

You can also use Inter Process Communication between two dialog boxes. Read about OnCopyData method.

The SendMessage for WM_COPYDATA, they Handle to sender is an HWND

SendMessage((HWND) hWnd, // handle to destination window
WM_COPYDATA, // message to send
(WPARAM) wParam, // handle to window (HWND)
(LPARAM) lParam // data (PCOPYDATASTRUCT)
);
I hope this ll help you.

Is This Answer Correct ?    1 Yes 1 No

In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Anot..

Answer / shiva

using application class we can store the data then we can retrieve that data example
if you're application like
in MyTabapplication.h
bool courses[3];
then dailog class
tab1.cpp
we can pass the data
void CTabOne::OnBnClickedCheck1()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CMyTabExampleApp* myApp = (CMyTabExampleApp*)AfxGetApp();
myApp->courses[0] = m_CHK_EXE.GetCheck();
}
tab2.cpp
in you're 2 dailog box
CMyTabExampleApp* myApp = (CMyTabExampleApp*)AfxGetApp();
if(myApp->courses[0])
{
m_CHK_EXE.EnableWindow(TRUE);
//m_CHK_EXE.SetCheck(FALSE);
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MFC Interview Questions

What is stack size in win32 program?

1 Answers   HCL,


How to update all the views whenver document got updated ?

1 Answers  


what is the difference between SDI and MDI

15 Answers   CMC, HCL, Siemens,


How can update edit control data of an executing application from other application?

3 Answers   HP,


is it possible to display a window .without using windowclass

1 Answers   E Logic,


What is serialization ?which function is responsible for serializing data ?

5 Answers  


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


What is the difference between regular dlls and extended dlls?

2 Answers  


Name the Synchronization objects?

2 Answers  


Why Array Index starts from Zero

30 Answers   HCL,


1)set the Title for The File DialogBox, in MFC?

1 Answers  


Categories