Advertisement

MFC & CSplitterWnd's

Started by June 27, 2000 05:42 AM
2 comments, last by MrFlibble 24 years, 5 months ago
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!
MrF.--Code..reboot..code..reboot..sigh!
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.
Advertisement
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!
MrF.--Code..reboot..code..reboot..sigh!
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"
BeSIt's Da BOMB Baby!!!. o O ~ A little nonsense now and then,is relished by the wisest men~ O o .-- Willy Wonka

This topic is closed to new replies.

Advertisement