Splitting an MDIFrame

Splitting an MDIFrame

Post by Gerhard Huebne » Thu, 14 Aug 1997 04:00:00



I want to split an MDIFrame like DevStudio does : I want some sort of
directory view on the left hand side and the area where the document
windows may reside on the right hand side:

+---------------------------------------------+
!Directory!!                                  !
!         !! +-----+                          !
!         !! !MDI  !    +-----------------+   !
!         !! !CHILD!    ! MDI CHILD       !   !
!         !! +-----+    !  +----------------+ !
!         !!            !  ! MDI CHILD      ! !
!         !!            !  !                ! !
!         !!            !  !                ! !
!         !!            +--!                ! !
!         !!               !                ! !
!         !!               +----------------+ !
!         !!                                  !
+---------++----------------------------------!
          ^^ Split bar

I guess that it is not that easy because a CSplitterWnd can only contain
views and not windows so the CSplitterWnd cannot be directly used as
child of the CMDIFrameWnd.

Does anyone know how Microsoft did it or how to implement it in general?

Regards,
--
Dipl.-Phys. Gerhard Huebner        __
Institute of Astronautics          \ \____   "Not a plucky hero
--------------------------------===>--____>   until one reaches
Technical University of Munich     /_/        the Great Wall"
Tel.: +49-89-289-16015, Fax: 16004
http://www.lrt.mw.tu-muenchen.de/personen/ghuebner/ghuebner.html

 
 
 

Splitting an MDIFrame

Post by darkwin » Fri, 15 Aug 1997 04:00:00


     I'm not absolutely sure of this...but it looks to me that they created
resizable docking bars (the child windows that provide a platform for the
toolbars and other stuff).  Look in the MFC source code for the layouts of
CControlBar, CDockBar, and so on.  These are really hard to mess with
though, since Microsoft saw fit to leave most of the MFC control bar classes
undocumented...thank's Bill.  Just take a normal docking bar and draw a
splitter-bar along the edge of it according to which side of the frame it's
stuck to.  Then just wait for a mouse drag to resize and redraw it and
adjust the child controls accordingly.  Easier said than done though.

Darkwing

P.S.  You ought to read "MFC Internals" by George Shepherd and Scot Wingo.
It's got a good explaination of MFC's control bar implementation.

Gerhard Huebner wrote in article

Quote:>I want to split an MDIFrame like DevStudio does : I want some sort of
>directory view on the left hand side and the area where the document
>windows may reside on the right hand side:

>+---------------------------------------------+
>!Directory!!                                  !
>!         !! +-----+                          !
>!         !! !MDI  !    +-----------------+   !
>!         !! !CHILD!    ! MDI CHILD       !   !
>!         !! +-----+    !  +----------------+ !
>!         !!            !  ! MDI CHILD      ! !
>!         !!            !  !                ! !
>!         !!            !  !                ! !
>!         !!            +--!                ! !
>!         !!               !                ! !
>!         !!               +----------------+ !
>!         !!                                  !
>+---------++----------------------------------!
>          ^^ Split bar

>I guess that it is not that easy because a CSplitterWnd can only contain
>views and not windows so the CSplitterWnd cannot be directly used as
>child of the CMDIFrameWnd.

>Does anyone know how Microsoft did it or how to implement it in general?

>Regards,
>--
>Dipl.-Phys. Gerhard Huebner        __
>Institute of Astronautics          \ \____   "Not a plucky hero
>--------------------------------===>--____>   until one reaches
>Technical University of Munich     /_/        the Great Wall"
>Tel.: +49-89-289-16015, Fax: 16004
>http://www.lrt.mw.tu-muenchen.de/personen/ghuebner/ghuebner.html


 
 
 

Splitting an MDIFrame

Post by Jens Peter Kleina » Fri, 15 Aug 1997 04:00:00


No, I realy don't know how MS does it (who cares anyway), but I can try to
explain how I solved this problem:
I used a CDialogBar and implemented some functtionality there for resizing
by watching mousemoves a little bit closer and draw some lines for a
lookalike slider. This bar had a treectrl as a child, which was resized by
the parent. this solution allowes everything the msdev studio tree does and
leaves the frame window untouched.
cu Jens Peter Kleinau



Quote:> I want to split an MDIFrame like DevStudio does : I want some sort of
> directory view on the left hand side and the area where the document
> windows may reside on the right hand side:

> +---------------------------------------------+
> !Directory!!                                  !
> !         !! +-----+                          !
> !         !! !MDI  !    +-----------------+   !
> !         !! !CHILD!    ! MDI CHILD       !   !
> !         !! +-----+    !  +----------------+ !
> !         !!            !  ! MDI CHILD      ! !
> !         !!            !  !                ! !
> !         !!            !  !                ! !
> !         !!            +--!                ! !
> !         !!               !                ! !
> !         !!               +----------------+ !
> !         !!                                  !
> +---------++----------------------------------!
>           ^^ Split bar

> I guess that it is not that easy because a CSplitterWnd can only contain
> views and not windows so the CSplitterWnd cannot be directly used as
> child of the CMDIFrameWnd.

> Does anyone know how Microsoft did it or how to implement it in general?

> Regards,
> --
> Dipl.-Phys. Gerhard Huebner        __
> Institute of Astronautics          \ \____   "Not a plucky hero
> --------------------------------===>--____>   until one reaches
> Technical University of Munich     /_/        the Great Wall"
> Tel.: +49-89-289-16015, Fax: 16004
> http://www.lrt.mw.tu-muenchen.de/personen/ghuebner/ghuebner.html

 
 
 

Splitting an MDIFrame

Post by steve mcada » Mon, 18 Aug 1997 04:00:00


On Wed, 13 Aug 1997 19:32:27 +0200, Gerhard Huebner


>I want to split an MDIFrame like DevStudio does : I want some sort of
>directory view on the left hand side and the area where the document
>windows may reside on the right hand side:

If you create a resizable docking (or simply attached if the user
doesn't need to make it a popup) window attached to the left side of
the frame, that leaves the right side to contains mdichild windows.
There are commercial products that support this (see below for one
example) and there are probably sites around that have free code for
this.  -steve
____________________________________________________________________
McAdams Research - http://www.CodeTools.com/showcase
  MFC Toolkit: flat-style toolbar, resizable docking windows, more
 
 
 

1. Playing wave files to TAPI - split / no split

I have posted this to both tapi and mmedia.

I have written a tapi application that plays wave files to a
telephone line using my modem.

Problem: I recieve the WOM_DONE message before the sound
has stopped. I then have no control over the sound until it really
has stopped, and my computer is locked during this time also.
Approx, it covers the last 20% of playing time. I cannot even close
the application window down during this time. I must have real time
control over start/stoping the sound, throughout the entire sound.

Previous suggestion given: Break the sound up into many small
bits. This seems like a diificult way to do things. Could
someone suggest an easier way, or give me some more
instruction on how i go about breaking a sound up and maintaining
some simplicity to my program.

specs: win95, dynalink v1414ve modem, unimodem/v, ms visual C++ 4
I the programmer am of little inteligence and am not completly visual
literate.

Another problem is that my modem is recording too loud.
It was suggested that i change the settings in the driver somewhere.
I had guessed this already, and have not found where the setting is.
I've messed with nearly everything but the recording level.

2. Converting lossless .wma files to .wav

3. MDIFrame without menu

4. NSPrgMgr.ocx

5. How to make splitter MDIFrame like VC++ 4.0 / Dev. Studio has

6. WINIPCFG Command line arguements

7. Software to split an *.AVI or *.MPG file ??

8. NT has SLIP, PPP, FTP client and server?

9. combining split program files into one

10. wav file splitter for sampling - split.com (1/1)

11. Splitting and joining nultimedia files

12. Splitting .AVI

13. Multi-Track splitting hardware/software