Solved

Dialog box control

Posted on 2006-10-26
2
205 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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now