Click here to Skip to main content
15,884,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! So, the title basically explains it!
I am working on a map editor on Microsoft's Foundation Class (MFC), I used a wizard, blah blah blah SDT, blah blah blah.....so far, everything is going perfectly!
What I really want to do, however is to make a split window with different views
so that one view is my map and the other is my resources (like RPG Maker does it)

I looked up tutorials like this:
http://www.codeproject.com/Articles/15338/SDI-with-split-window

However, what I'm looking at now is a couple of dialog boxes, not views. I'm pretty sure dialog boxes are used differently from views, although they do share a CView parent. I want to be able to draw normally on my client.

I also found tutorials for switching views, also not what I'm looking for ahaha.


So visually, this is a minimalistic mock-up of what I am looking for:
http://imageshack.us/a/img543/811/gmhp.png
Posted
Comments
nv3 11-Aug-13 3:25am    
If you followed the mentioned tutorial you should see a splitter window with two views, and not dialogs. So you probably not following the tutorial or not understanding how the underpinnings work. In order to help you, it would be necessary to take a look at your code.

MFC already has the CSplitterWnd class[^], for this exact purpose.
 
Share this answer
 
You can either use CSplitterWnd or change your application from SDI (or dialog) to MDI. There are numerous examples of each and Google should find you a plethora of advice and sample code.
 
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