home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!b63519.STUDENT.CWRU.Edu!dpn2
- From: dpn2@po.CWRU.Edu (Damien P. Neil)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: Status lines in MDI frame windows: how?
- Date: Sat, 7 Nov 1992 16:33:47 GMT
- Organization: Case Western Reserve University
- Lines: 21
- Message-ID: <dpn2.71.721154027@po.CWRU.Edu>
- References: <1992Nov7.210839.1@cc.curtin.edu.au>
- NNTP-Posting-Host: b63519.student.cwru.edu
-
- In article <1992Nov7.210839.1@cc.curtin.edu.au> nmurrayr@cc.curtin.edu.au (Ron Murray) writes:
- > How are the dinky little grey status lines on MDI frame windows (like the
- >WfW status line: the one with the current line/column, caps lock status etc.)
- >done? The fact that they all look very much alike from app to app makes me
- >suspect that there's a standard function that does it, but I can't seem to
- >find any reference to it. Or do you have to do it the hard way by creating
- >child windows, limiting the size of the client area, and so on?
-
- There are no functions specifically for creating these bars. It is not very
- hard to do so, however. You just need to add two functions -- one to draw
- the bar in response to a WM_PAINT message to the MDI frame window, and one
- to resize to MDI client when the frame receives a WM_MOVE message. You just
- size the client to the same size as the frame, minus a bit of height.
-
- If you are using BC++, I seem to remember that one of the example programs
- uses a status bar and is a good source to see how it works.
-
- Hope this helps!
- +-------------+------------------+---------------------------------+
- | Damien Neil | dpn2@po.cwru.edu | Case Western Reserve University |
- +-------------+------------------+---------------------------------+
-