home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 13.ddi / NOTEBOOK.PAK / NOTEBOOK.DOC < prev    next >
Encoding:
Text File  |  1993-12-02  |  2.6 KB  |  59 lines

  1.         NOTEBOOK CLASS SAMPLE CODE - 10/12/93
  2.         -------------------------------------
  3.  
  4. SOURCE FILES:
  5. -------------
  6. The following source files comprise the notebook class sample code:
  7.  
  8.     - notebook.cpp, notebook.h    (defines TNotebook class)
  9.     - vscroll.cpp, vscroll.h    (defines vscroll gadget class)
  10.     - hscroll.cpp, hscroll.h    (defines hscroll gadget class)
  11.     - utils.cpp, utils.h        (code for logging debug messages)
  12.  
  13.        - nb.cpp, nb.h            (test program for TNotebook class)
  14.        - pn.cpp, pn.h            (program notebook sample app)
  15.  
  16.  
  17. TNotebook class:
  18. ----------------
  19. The "TNotebook" class is a sample class designed to be "mixed-in" with
  20. a window class.  It allows you to turn any of your windows (or subclasses
  21. of windows) into a notebook window.  The notebook look is obtained by
  22. taking over a part of the window non-client area (selectable from top,
  23. right, bottom, left) and drawing notebook tabs and a mini tab scrollbar
  24. in the area.  If the window horizontal or vertical scrollbar also belongs 
  25. in the area, a custom (smaller) scrollbar is drawn in the area also.
  26.  
  27. The "nb" program (see below) shows the basics of how to create a notebook
  28. and how to operate it.  There is a special method of handling the 
  29. WM_SIZE messages for the TNotebook subclasses that will prevent multiple 
  30. nonclient area painting.  See the comment at the top of the "notebook.cpp"
  31. file and the "EvSize()" method in nb.cpp for more details.
  32.  
  33.  
  34. NB.EXE:
  35. -------
  36. The "nb" program was designed to test the TNotebook class and can also
  37. be used to test new TNotebook subclasses.  It creates notebooks with
  38. 2000 pages and draws a special pattern on each page along with the
  39. page name.  The pattern is designed to help test whether the TNotebook
  40. scrollbars are operating correctly (a red rectangle should be at the
  41. leftmost, topmost, rightmost, and bottommost positions of the page).
  42. The menu allows you to create notebooks with tabs in all 4 positions
  43. (top, right, bottom, and left).
  44.  
  45.  
  46. PN.EXE:
  47. -------
  48. The program "pn" is a simplified implementation of the Windows "program
  49. manager" program with a notebook twist.  It is an MDI app where each MDI 
  50. child window is a notebook.  On startup, the program reads the 
  51. program manager ".grp" files and each notebook created shows the available 
  52. groups on its tabs and allows selection of a group of icons into the 
  53. notebook's current page.
  54.  
  55. The program "pn.exe" can be run as a normal program under program manager
  56. or it can be used in place of program manager (by changing the "shell" line
  57. of your windows "system.ini" file to something like "shell=c:\nb\pn.exe").
  58.  
  59.