Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the menu of the CMDIChildWnd Pin
Steen Krogsgaard9-Aug-02 1:04
Steen Krogsgaard9-Aug-02 1:04 
GeneralRe: Getting the menu of the CMDIChildWnd Pin
Mike Upton9-Aug-02 1:27
Mike Upton9-Aug-02 1:27 
GeneralRe: Getting the menu of the CMDIChildWnd Pin
Poul Haahr Klemmensen9-Aug-02 3:46
Poul Haahr Klemmensen9-Aug-02 3:46 
GeneralRe: Getting the menu of the CMDIChildWnd Pin
Mike Upton9-Aug-02 3:56
Mike Upton9-Aug-02 3:56 
GeneralSimple question on Dialogboxes Pin
D Satya9-Aug-02 0:43
D Satya9-Aug-02 0:43 
GeneralRe: Simple question on Dialogboxes Pin
Steen Krogsgaard9-Aug-02 1:08
Steen Krogsgaard9-Aug-02 1:08 
GeneralRe: Simple question on Dialogboxes Pin
D Satya9-Aug-02 1:44
D Satya9-Aug-02 1:44 
GeneralRe: Simple question on Dialogboxes Pin
Steen Krogsgaard9-Aug-02 1:51
Steen Krogsgaard9-Aug-02 1:51 
Lemme get this straight: You have a linked list that is a member of your view class. From the view class you instantiate a dialog. In the dialogs OnInitDialog you want to access the linked list.

If this is correct, the my previous answer is still valid. Make a member variable in your dialog class:
class CYourDialog : CDialog
{
   ....
public:
   CYourView* m_pParentView;
}


Initialize the m_pParentView pointer in the view class before calling DoModal on the dialog class:
void CYourView::OnShowDialog()
{
   CYourDialog dlg;
   dlg.m_pParentView = this
   dlg.DoModal()
}


Then you can to access the linked list in OnInitDialog:
BOOL CYourDialog::OnInitDialog()
{
   ...  // do stuff
   m_pParentView->m_LinkedList = ...
}


If I have misunderstood your problem then please rephrase or provide a code snippet illustrating the problem.


Cheers
Steen.

"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: Simple question on Dialogboxes Pin
D Satya9-Aug-02 18:09
D Satya9-Aug-02 18:09 
GeneralCListBox takes up 100% CPU usage Pin
KHYEE9-Aug-02 0:31
KHYEE9-Aug-02 0:31 
GeneralRe: CListBox takes up 100% CPU usage Pin
Tomasz Sowinski9-Aug-02 1:02
Tomasz Sowinski9-Aug-02 1:02 
GeneralRe: CListBox takes up 100% CPU usage Pin
Anonymous11-Aug-02 22:29
Anonymous11-Aug-02 22:29 
GeneralRe: CListBox takes up 100% CPU usage Pin
Shog99-Aug-02 4:45
sitebuilderShog99-Aug-02 4:45 
GeneralRe: CListBox takes up 100% CPU usage Pin
KHYEE12-Aug-02 18:32
KHYEE12-Aug-02 18:32 
GeneralRe: CListBox takes up 100% CPU usage Pin
Shog912-Aug-02 19:02
sitebuilderShog912-Aug-02 19:02 
GeneralInserting bitmap into RTF Pin
Hans Ruck9-Aug-02 0:31
Hans Ruck9-Aug-02 0:31 
GeneralCBitmap vs. HBITMAP Pin
[CoY0te]9-Aug-02 0:23
[CoY0te]9-Aug-02 0:23 
GeneralRe: CBitmap vs. HBITMAP Pin
[CoY0te]9-Aug-02 1:43
[CoY0te]9-Aug-02 1:43 
GeneralRe: CBitmap vs. HBITMAP Pin
Ernest Laurentin9-Aug-02 6:36
Ernest Laurentin9-Aug-02 6:36 
Generalstarting an EXE-Application at an other network PC Pin
Ralph8-Aug-02 23:52
Ralph8-Aug-02 23:52 
GeneralRe: starting an EXE-Application at an other network PC Pin
Jeremy Pullicino9-Aug-02 0:13
Jeremy Pullicino9-Aug-02 0:13 
GeneralRe: starting an EXE-Application at an other network PC Pin
Jason Henderson9-Aug-02 3:20
Jason Henderson9-Aug-02 3:20 
GeneralRe: starting an EXE-Application at an other network PC Pin
Daniel Lohmann9-Aug-02 5:56
Daniel Lohmann9-Aug-02 5:56 
Generalscroll bar size in CSrollView Pin
mishgun8-Aug-02 23:49
mishgun8-Aug-02 23:49 
GeneralRe: scroll bar size in CSrollView Pin
Roger Allen9-Aug-02 0:46
Roger Allen9-Aug-02 0:46 

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.