Click here to Skip to main content
15,882,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am developing an MFC SDI application.

The main view has three Edit boxes for user input for x, y and radius.

The application is supposed to get these data and draw a Sphere in OSG viewer.

As OSG Viewer grabs full window, I am planning to add a child window that can have OSG viewer.

Please advise. How to add a child window in a MFC SDI application that can have a osgviewer?

Is there any better approach to solve tis task other than adding a child window?

thanks

What I have tried:

I tried adding text box and osgviewer on same view in SDI application. but in this approach osgviewer grabs full window and colors everything.
Posted
Updated 21-Feb-21 1:02am
Comments
Richard MacCutchan 20-Feb-21 8:06am    
Instead of using the main view for the inputs, use a Dialog as it is much simpler to handle.
Bhanunjay 21-Feb-21 7:00am    
Thanks, yes it worked. Thanks for your time.

1 solution

Instead of using the main view for the inputs, use a Dialog as it is much simpler to handle.

AS advised by Richard MacCutchan worked well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900