Click here to Skip to main content
15,899,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ideas for database to use... Pin
Eytukan10-Feb-09 8:43
Eytukan10-Feb-09 8:43 
QuestionReportView Style Pin
ATM@CodeProject9-Feb-09 19:47
ATM@CodeProject9-Feb-09 19:47 
AnswerRe: ReportView Style Pin
Sarath C9-Feb-09 20:17
Sarath C9-Feb-09 20:17 
AnswerRe: ReportView Style Pin
SandipG 9-Feb-09 20:18
SandipG 9-Feb-09 20:18 
GeneralRe: ReportView Style Pin
ATM@CodeProject9-Feb-09 21:44
ATM@CodeProject9-Feb-09 21:44 
QuestionCustom Message From Child Dialog Pin
zakkas24839-Feb-09 19:25
zakkas24839-Feb-09 19:25 
AnswerRe: Custom Message From Child Dialog Pin
_AnsHUMAN_ 9-Feb-09 19:34
_AnsHUMAN_ 9-Feb-09 19:34 
GeneralRe: Custom Message From Child Dialog Pin
zakkas24839-Feb-09 19:53
zakkas24839-Feb-09 19:53 
I have Two Dialog box. Abc and Def ok. From Add button of Abc i have created Def Dialog box. I need to do some work in Abc on OK of Def.

CODE:
// Abc.cpp
#define USER_MSG WM_USER + 100

BEGIN_MESSAGE_MAP(Abc, CDialog)
//{{AFX_MSG_MAP(Abc)
ON_MESSAGE( USER_MSG, DoSomeWork )
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void Abc::OnAdd()
{
Def d;
d.ptrParent = this;
d.DoModel();
}

void Abc::DoSomeWork()
{

}

/// From def.cpp
void def::OnOK()
{
if( ptrParent )
::sendMessage( ptrParent->m_hWnd, WM_USER + 100,0,0);
// i can do like ptrParent->DoSomeWork() but i wants to user USER MSG.
}

Thank you for your interest.
GeneralRe: Custom Message From Child Dialog Pin
SandipG 9-Feb-09 20:09
SandipG 9-Feb-09 20:09 
GeneralRe: Custom Message From Child Dialog Pin
zakkas24839-Feb-09 20:18
zakkas24839-Feb-09 20:18 
GeneralRe: Custom Message From Child Dialog Pin
SandipG 9-Feb-09 20:32
SandipG 9-Feb-09 20:32 
AnswerRe: Custom Message From Child Dialog Pin
Sarath C9-Feb-09 20:17
Sarath C9-Feb-09 20:17 
GeneralRe: Custom Message From Child Dialog Pin
zakkas24839-Feb-09 20:44
zakkas24839-Feb-09 20:44 
GeneralRe: Custom Message From Child Dialog Pin
SandipG 9-Feb-09 21:13
SandipG 9-Feb-09 21:13 
GeneralRe: Custom Message From Child Dialog Pin
zakkas24839-Feb-09 21:36
zakkas24839-Feb-09 21:36 
GeneralRe: Custom Message From Child Dialog Pin
Sarath C9-Feb-09 21:19
Sarath C9-Feb-09 21:19 
GeneralRe: Custom Message From Child Dialog Pin
zakkas24839-Feb-09 21:30
zakkas24839-Feb-09 21:30 
GeneralRe: Custom Message From Child Dialog Pin
zakkas24839-Feb-09 21:39
zakkas24839-Feb-09 21:39 
GeneralRe: Custom Message From Child Dialog Pin
Sarath C9-Feb-09 23:21
Sarath C9-Feb-09 23:21 
AnswerRe: Custom Message From Child Dialog Pin
Iain Clarke, Warrior Programmer9-Feb-09 22:12
Iain Clarke, Warrior Programmer9-Feb-09 22:12 
GeneralRe: Custom Message From Child Dialog Pin
zakkas24839-Feb-09 23:24
zakkas24839-Feb-09 23:24 
QuestionCheck Boxes - Mutually Exclusive Pin
Anandi.VC9-Feb-09 18:27
Anandi.VC9-Feb-09 18:27 
AnswerRe: Check Boxes - Mutually Exclusive Pin
«_Superman_»9-Feb-09 19:10
professional«_Superman_»9-Feb-09 19:10 
GeneralRe: Check Boxes - Mutually Exclusive Pin
Anandi.VC9-Feb-09 19:57
Anandi.VC9-Feb-09 19:57 
AnswerRe: Check Boxes - Mutually Exclusive Pin
Iain Clarke, Warrior Programmer9-Feb-09 22:16
Iain Clarke, Warrior Programmer9-Feb-09 22:16 

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.