Dialog box control

I have a uni assignment to build an application that is a simple front end for a database and as such is a dialog based application.

It has a list control object so i can display the record set "rows". However. once the dialog is open how can I access it from the applications view class to give it a pointer to the record set class

Being a beginner, i tried to created a new dialog window

        m_pCustomerListDlg = new CCustomerListDlg();
      m_pCustomerListDlg->Create(IDD_CUSTOMER_FORM);
      m_pCustomerListDlg->Init(this, m_pSet->m_pDatabase);
      m_pCustomerListDlg -> ShowWindow (SW_SHOW);
      m_pCustomerListDlg -> Create_Table ();

this displayed the data table but the UI was stuffed up. How is the best way to "attach" the open dialog window to the variable m_pCustomerListDlg?

Phill


PhillOAsked:
Who is Participating?
 
AlexFMConnect With a Mentor Commented:
What exactly do you want to do? You already have m_pCustomerListDlg variable in some class (View?). Using this variable you always can call dialog functions. Please give more details.
0
 
PhillOAuthor Commented:
I forgot to add a control variable for the list control which (when created ) does appear in the view class.


Man I have an exam on this in a few weeks !!!!!

Phill




0
All Courses

From novice to tech pro — start learning today.