Solved

the use of CPropertySheet as a child

Posted on 1998-10-08
1
235 Views
Last Modified: 2010-04-01
I am using Microsoft Visual C++ v5.0 and the MFC to produce a multiple
document MDI application.  I am trying to use a tabbed property sheet
for the main data entry window in this app.  The CPropertySheet class
wants to instantiate itself as a stand-alone dialog.  I need to find
some way to configure this class so it can be used as a child window
within the app using the MFC Document/View architecture.  I already
have a CDocument class to hold the rather large amount of data
associated with the application and now need to link the data elements
with the CPropertyPages screen displays.  Is there some way that I can
"trick" the CMultiDocTemplate class into accepting the CPropertySheet
as a view?  Alternately, can I configure the normal CView class to
accept this property sheet as its user interface (dialog ) display?  
Is there some other approach that could be used?  Any Help???
0
Comment
Question by:gtrogan
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 200 total points
Comment Utility
See the SNAPVW sample, which ships in the product.

I think it will do what you want: your question is very confusingly worded.

(For example, you say that you want an MDI interface, but you want a child property page to be your "main window for data entry".  You can't have both: if you want an MDI UI, then a MDI frame window will be your main window--you might have a tabbed window as your child view, but you can't have a child window as a main window.)

B ekiM

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

771 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

7 Experts available now in Live!

Get 1:1 Help Now