home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3293 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.7 KB

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