• Advertisement

Archived

This topic is now archived and is closed to further replies.

MFC & CSplitterWnd's

This topic is 6444 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay - probably a bad subject to bring up (MFC I mean) Anyway ... anyone know how to stop splitter windows from being resized ? Generally I am creating a level editor and am using a 4 view system ala UnrealED or 3D Studio. What I want is to be able to stop the 4 windows from being resized without stopping the size message for when the application is set fullscreen/normal size - and I can''t find anything on it. Ta for the help -- Code..reboot..code..reboot..sigh!

Share this post


Link to post
Share on other sites
Advertisement
Sounds like you want static splitters and you want to intercept the mouse messages like overonmouse, OnLeftButtonDown so that the cursor doesn''t change.

Note that CSplitterWnd is implemented entirely by MFC code, it is not a wrapper for a group of Win32 functions. So you can find the code for CSplitterWnd in the header files and modify it to get what you want.

Share this post


Link to post
Share on other sites
M$ strikes again I think.

Just had a look through the documentation on CSplitterWnd''s.

The Create function is used to create a dynamic splitter
window. One in which views can be added/removed easily to
give a multiple view on one document - aka Visual C++''s source
code editor.

The CreateStatic function is used to create a splitter in which
the views are never changed after they have been created. I.e.
They are always present and provide a view either onto the
same or another document.

Both area nice features. Think I''m going to have to investigate
this slightly further. Maybe by overriding the OnSize of the
view''s I can stop it from being resized ... hmmm ...

--
Code..reboot..code..reboot..sigh!

Share this post


Link to post
Share on other sites
quote:
Original post by MrFlibble


Okay - probably a bad subject to bring up (MFC I mean)

Anyway ... anyone know how to stop splitter windows
from being resized ?

Generally I am creating a level editor and am using a 4 view
system ala UnrealED or 3D Studio. What I want is to be able
to stop the 4 windows from being resized without stopping the
size message for when the application is set fullscreen/normal
size - and I can''t find anything on it.

Ta for the help

--
Code..reboot..code..reboot..sigh!


I may be wrong, but wouldn''t you want to set them static and then attach them to the parent document and make the size of the splitter window dependent on the resize of the parent?

If I''m wrong just shoot me, I''m new to this stuff.



BeOS, "It's da bomb, baby"

Share this post


Link to post
Share on other sites

  • Advertisement