Click here to Skip to main content
15,901,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RichEdit Control Problem! Pin
Luis Mejia20-May-05 5:18
Luis Mejia20-May-05 5:18 
GeneralRe: RichEdit Control Problem! Pin
Waleed Eissa21-May-05 12:40
Waleed Eissa21-May-05 12:40 
GeneralDocking ControlBars Pin
stevy8219-May-05 23:04
stevy8219-May-05 23:04 
GeneralRe: Docking ControlBars Pin
stevy8226-May-05 22:23
stevy8226-May-05 22:23 
Generallexx/flexx question Pin
Maxime Labelle19-May-05 21:55
Maxime Labelle19-May-05 21:55 
GeneralRegCreateKeyEx Pin
Its due when19-May-05 21:06
Its due when19-May-05 21:06 
GeneralRe: RegCreateKeyEx Pin
GDavy19-May-05 21:52
GDavy19-May-05 21:52 
GeneralAccessing to parent view Pin
doctorpi19-May-05 21:02
doctorpi19-May-05 21:02 
Hi guys
I've got an SDI app and from the view I call a dialog like this.

In CMyView.cpp

void CMyView::OpenMydialog()
{
CMyDialog dlg;
dlg.SetFather(this);
dlg.DoModal();
}
and in my dialog I do this

In MyDialog.h

class CMyView;

CMyView *m_pFather;
void SetFather(CMyView *p_pFather);

and in MyDialog.cpp
#include "myappView.h" (but due to this I have to include first myappDoc.h")

void CMyDialog::SetFather(CMyView *p_pFather) {
m_pFather=p_pFather;
}

What's the usual (and right) way to acces the parent (View) class without to add all these includes?
Now each time I compile , practically all app is compiled again and that's what I want to avoid.

Thanks in forwarding
Doc


GeneralRe: Accessing to parent view Pin
GDavy19-May-05 21:12
GDavy19-May-05 21:12 
GeneralRe: Accessing to parent view Pin
doctorpi19-May-05 22:26
doctorpi19-May-05 22:26 
GeneralRe: Accessing to parent view Pin
GDavy19-May-05 22:29
GDavy19-May-05 22:29 
GeneralRe: Accessing to parent view Pin
Tom Archer20-May-05 17:08
Tom Archer20-May-05 17:08 
GeneralC++ Client for Microsoft Excel Pin
AnuradhaCpp19-May-05 20:11
AnuradhaCpp19-May-05 20:11 
GeneralRe: C++ Client for Microsoft Excel Pin
David Crow20-May-05 2:04
David Crow20-May-05 2:04 
QuestionHow to show the Application's icon in the Local disk Pin
wwwht19-May-05 20:06
wwwht19-May-05 20:06 
GeneralCFile::UnlockRange () exception problem Pin
NeoHobbit19-May-05 19:44
NeoHobbit19-May-05 19:44 
GeneralCommunication Pin
usmanmir19-May-05 18:43
usmanmir19-May-05 18:43 
GeneralRe: Communication Pin
Christian Graus19-May-05 18:49
protectorChristian Graus19-May-05 18:49 
GeneralRe: Communication Pin
ThatsAlok19-May-05 19:01
ThatsAlok19-May-05 19:01 
GeneralRe: Communication Pin
Michael Dunn19-May-05 19:58
sitebuilderMichael Dunn19-May-05 19:58 
GeneralRe: Communication Pin
ThatsAlok19-May-05 20:03
ThatsAlok19-May-05 20:03 
GeneralRe: Communication Pin
usmanmir19-May-05 19:02
usmanmir19-May-05 19:02 
GeneralRe: Communication Pin
Christian Graus19-May-05 19:05
protectorChristian Graus19-May-05 19:05 
GeneralRe: Communication Pin
usmanmir19-May-05 19:14
usmanmir19-May-05 19:14 
GeneralRe: Communication Pin
Christian Graus19-May-05 19:19
protectorChristian Graus19-May-05 19:19 

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.