Solved

Dialog box control

Posted on 2006-10-26
2
223 Views
Last Modified: 2010-04-24
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


0
Comment
Question by:PhillO
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 17813527
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
 

Author Comment

by:PhillO
ID: 17813821
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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question