Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetting User Details Pin
Yuvaraj N22-Nov-04 0:23
Yuvaraj N22-Nov-04 0:23 
GeneralRe: Getting User Details Pin
ThatsAlok22-Nov-04 17:24
ThatsAlok22-Nov-04 17:24 
GeneralLinker Error In SAL module on linking open office code Pin
nitinmahajan8022-Nov-04 0:22
nitinmahajan8022-Nov-04 0:22 
GeneralTTN_NEEDTEXT Not Calling Pin
Rajesh_Parameswaran22-Nov-04 0:16
Rajesh_Parameswaran22-Nov-04 0:16 
GeneralRe: TTN_NEEDTEXT Not Calling Pin
David Crow22-Nov-04 8:38
David Crow22-Nov-04 8:38 
GeneralRe: TTN_NEEDTEXT Not Calling Pin
Rajesh_Parameswaran22-Nov-04 18:57
Rajesh_Parameswaran22-Nov-04 18:57 
QuestionHow to send a message to a dialog Pin
Nest22-Nov-04 0:15
Nest22-Nov-04 0:15 
AnswerRe: How to send a message to a dialog Pin
Rajesh_Parameswaran22-Nov-04 0:47
Rajesh_Parameswaran22-Nov-04 0:47 
Hi,
you can define a public function in the ObjectA property Dialog and in the second dialog's close function, u just create a member of the first one and invoke the public function of ObjectA dialog box, which inturn calls the OnOK() function.

ObjectA.cpp
---------
void CADlg::Destroy()
{
OnOK();
}

ObjectB.cpp
-----------
void CBDlg::OnButton1()
{
// TODO: Add your control notification handler code here
OnOK();
CADlg *pWnd = (CADlg*)GetParent();
pWnd->Destroy();

}
or

can also use this way

void CBDlg::OnButton1()
{
// TODO: Add your control notification handler code here
OnOK();
CADlg *pWnd = (CADlg*)GetParent();
pWnd->EndDialog();

}


Regards,

Rajesh
GeneralRe: How to send a message to a dialog Pin
Nest22-Nov-04 0:55
Nest22-Nov-04 0:55 
AnswerRe: How to send a message to a dialog Pin
namaskaaram22-Nov-04 19:06
namaskaaram22-Nov-04 19:06 
QuestionHow to Dinamically create and Link to Access DataBase using C++ Pin
pubududilena21-Nov-04 23:50
pubududilena21-Nov-04 23:50 
Generallanguage problem Pin
hph21-Nov-04 22:40
hph21-Nov-04 22:40 
GeneralRe: language problem Pin
toxcct22-Nov-04 5:43
toxcct22-Nov-04 5:43 
GeneralRe: language problem Pin
BaldwinMartin23-Nov-04 10:35
BaldwinMartin23-Nov-04 10:35 
QuestionHow to resolve Regsvr32 Error? Pin
Franz Klein21-Nov-04 22:19
Franz Klein21-Nov-04 22:19 
AnswerRe: How to resolve Regsvr32 Error? Pin
nguyenvhn21-Nov-04 22:30
nguyenvhn21-Nov-04 22:30 
AnswerRe: How to resolve Regsvr32 Error? Pin
22491721-Nov-04 23:40
22491721-Nov-04 23:40 
GeneralRe: How to resolve Regsvr32 Error? Pin
vishalmore22-Nov-04 0:06
vishalmore22-Nov-04 0:06 
GeneralRe: How to resolve Regsvr32 Error? Pin
22491722-Nov-04 0:30
22491722-Nov-04 0:30 
GeneralRe: How to resolve Regsvr32 Error? Pin
Franz Klein22-Nov-04 2:43
Franz Klein22-Nov-04 2:43 
GeneralRe: How to resolve Regsvr32 Error? Pin
Antony M Kancidrowski22-Nov-04 4:58
Antony M Kancidrowski22-Nov-04 4:58 
Generalhelp in DrawItem() Pin
Tripura.K21-Nov-04 21:29
Tripura.K21-Nov-04 21:29 
Generalto wake up lcd Pin
chels21-Nov-04 21:17
chels21-Nov-04 21:17 
Generaltab control in vc++ Pin
vc-programmer-21-Nov-04 20:56
vc-programmer-21-Nov-04 20:56 
GeneralRe: tab control in vc++ Pin
Yulianto.21-Nov-04 21:14
Yulianto.21-Nov-04 21:14 

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.