home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1372 < prev    next >
Encoding:
Text File  |  1992-08-17  |  960 b   |  26 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!news.cs.indiana.edu!uceng.uc.edu!bmeranda
  3. From: bmeranda@uceng.UC.EDU (Brent E Meranda)
  4. Subject: Scrollbars in MDI Client Area
  5. Message-ID: <1992Aug17.215417.23541@uceng.UC.EDU>
  6. Keywords: But only when needed
  7. Organization: College of Engineering, University of Cincinnati
  8. Date: Mon, 17 Aug 1992 21:54:17 GMT
  9. Lines: 15
  10.  
  11. I would like to be able to create a CMDIFrameWnd using the MFC
  12. that will display scrollbars if and only if the child windows
  13. will not fit on in the client area (similar to Program Manager or
  14. File Manager).
  15.  
  16. I have been able to get scrollbars to appear and work using 
  17.  
  18.     CWnd::FromHandle(m_hWndMDIClient)->ShowScrollBar(SB_BOTH,TRUE);
  19.  
  20. the scrollbars disappear when not needed anymore (after being used)
  21. but appear even if not needed.
  22.  
  23. How do I determine if scrollbars are necessary?
  24.     
  25. Post or send responses to bmeranda@uceng.uc.edu.
  26.