Solved

Dialog box control

Posted on 2006-10-26
2
241 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

734 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