Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read contents of a listbox in the parent window from Modal Dialog 1

Status
Not open for further replies.

Bickle

Programmer
Jul 12, 2001
22
0
0
FR
Can anybody help me how to read the contents a listbox of a parent window from dialog window (shown as modal)...Do I have a handel pointing to the parent window in the dialog ?




 
Sorry but can you be a bit more descriptive please.
William
Software Engineer
ICQ No. 56047340
 
This pointer should point to the parent window
How I can initialize it ????

m_pParentWnd->

In the CDialog class

// Construction
public:
CConfigDlg(CWnd* pParent = NULL);// standard constructor
 
William, I hope this is a bit more specific...

This pointer should point to the parent window
How I can initialize it ????

m_pParentWnd->

In the CDialog class

// Construction
public:
CConfigDlg(CWnd* pParent = NULL);// standard constructor
 
Ah IC.

When you create the DLG pass it a reference to this, in the constructor. In the DLG's .h file create a CWnd* m_pWnd and in the constructor m_pWnd = pParent.

Write a public function (in the parent) that will return what you need. So inside DLG m_pWnd->MyStuff() or what ever.

William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top