Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Working with many frame windows

Posted on 2006-07-07
1
Medium Priority
?
215 Views
Last Modified: 2010-04-24
Hi.I have a quickwin project(dialog based).I want, when I push a button, to be created a new frame window(I want to create 2 frame windows at the same time) .Please can  you tell me how can I do it (if you can, send me the code)?????Also in this window I want to be shown a document or a text which I have created before.In this document I want to add some results.Please if you can,answer me ....Thank you......  
0
Comment
Question by:geomvigla
[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
1 Comment
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 2000 total points
ID: 17058406
>>I want, when I push a button, to be created a new frame window(I want to create 2 frame windows at the same time)

Not sure why would display two frames separately. If they are related you can display a property sheet with two dialogs in it.

If you want them separate, you can add two more dialogs. Add classes to them and show them as modeless dialog.

for example, OnButtonClick

CDialog1 *pDialog1 = new CDialog1();
   //Check if new succeeded and we got a valid pointer to a dialog object
   if(pDialog1 != NULL)
   {
      BOOL ret = pDialog1->Create(IDD_DIALOG1,this);
      pDialog1->ShowWindow(SW_SHOW);
   }
   CDialog2 *pDialog2 = new CDialog2();
   //Check if new succeeded and we got a valid pointer to a dialog object
   if(pDialog2 != NULL)
   {
      BOOL ret = pDialog2->Create(IDD_DIALOG2,this);
      pDialog2->ShowWindow(SW_SHOW);
   }

These would create modeless dialogs. You may need to show in different positions using SetWindowPos API.

For reading document/text file you can add a RichEditCtrl to the dialog and read files into it.
You can refer to this link for streaming in  .rtf file into RichEditCtrl
http://msdn2.microsoft.com/en-us/library/h2hkhzhe.aspx

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

722 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