Solved

Dialog box control

Posted on 2006-10-26
2
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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