Solved

How to embed a CDialog or CView into a CFormView window

Posted on 1997-05-07
1
924 Views
Last Modified: 2013-11-20
I would like to embed either a CDialog or CView derived object in a CFormView derived object.  The child window needs to scroll horizontally.  The solution to this problem does not have to utilize these classes I just want to make it easier on myself so that I can write my code in the wayI used to.  Has anyone done this before?
0
Comment
Question by:andy.bronson
1 Comment
 
LVL 4

Accepted Solution

by:
mbhakta earned 100 total points
ID: 1301395
There used to be an example in MSDN about embeddind CDialog based objects into a ownerdrawn list box. Each item was a dialog inside the list box. You can implement the same for other controls. Just make sure that your CDialog based template's parent is the control / view and not the desktop. This can be done by using SetParent().
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now