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 ?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.