Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using child windows as views of a single document

Status
Not open for further replies.

mrevil

Programmer
Joined
Oct 5, 2003
Messages
3
Location
IL
Hi,
Basicly, I want to create a SDI with doc/view support.
Because its going to be a graphics editor program, I want to create child windows that will serve for different tasks of editing.
My question is: how to do that in Visual c++, and how to attach all that views to my single document in a single frame?
 
Look in msdn.microsoft.com. There is a lot of information and samples.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
>Basicly, I want to create a SDI with doc/view support.

Ok, but every SDI has doc/view. The D in SDI is for Document.

You can start off by letting AppWiz create an Explorer like SDI for you. There you'll see how 2 different views can serve 1 document. Play around, change their view types to your needs, cut away the list and tree specific stuff. Check out the CplitterWnd and how that is used to combine several views with 1 document.

/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
OK, I've tried to mark the &quot;Windows Explorer&quot; in AppWiz step 5 but as a result I got a split window, and that is not exactly what I want.
I want my application to have several independet child windows, like the windows you see in MDI when you click on &quot;new document&quot; inside the main frame.
Is it possible to create such windows in SDI so each one of them will serve as a diferent view of a single document???

Thanks for your answer.
 
>I want my application to have several independet child windows

Ah, of course.
See thread207-609477


/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top