home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / MDI-15.ZIP / READ.12 < prev    next >
Text File  |  1990-07-09  |  2KB  |  58 lines

  1. San Francisco Canyon Comapny
  2. 220 Montgomery Street, Suite 1063
  3. San Francisco, CA 94104
  4.  
  5. (415) 398-9957  -  FAX 398-5998
  6.  
  7. Compuserve 72371,104
  8.  
  9. Mark Florence, President
  10.  
  11.  
  12.  
  13. MDI-12.ARC
  14. ----------
  15. These enhancements are included in MDI-12.ARC:
  16.  
  17. 1. Document windows can now be defined as having an action bar (menu).
  18.    To do this, simply code the id of a menu resource in the MDICreateDocument
  19.    function call as the sixth parameter and define that menu resource
  20.    in the appropriate .RC file.
  21.  
  22.    Naturally, the action bar is not displayed
  23.    in the document frame window. Instead, the MDI code automatically
  24.    inserts the document action bar items into the desktop action bar when
  25.    the document window becomes active. The effect is that of different
  26.    document types offering different menu choices to the user, much like
  27.    EXCEL.
  28.  
  29. 2. The above feature makes it convenient for different document types
  30.    to have their own menu commands. However, it was previously difficult
  31.    to process WM_COMMAND messages from the action bar in the document
  32.    window procedure, because they were sent to the desktop window procedure.
  33.  
  34.    MDIDesktopWndProc now routes all WM_COMMAND messages it doesn't recognize
  35.    to the active document's window procedure. This way, a document window
  36.    procedure can be written normally to process its WM_COMMAND messages,
  37.    just as if it were receiving them directly.
  38.  
  39. 3. For similar reasons, MDIDesktopWndProc has been changed to route all
  40.    WM_INITMENU and WM_MENUEND messages to the active document's window
  41.    procedure. The document can then enable and disable, check and uncheck
  42.    menu items as it sees fit to reflect its current state.
  43.  
  44.    NOTE: for now, don't try to MM_INSERT*, MM_DELETE* or MM_REMOVE*
  45.    any menu items. A future release will support this (and keep all
  46.    action bars in sync) as well as allow the changing of menu items
  47.    arbitrarily, rather than just at WM_INITMENU time.
  48.  
  49. 4. The MDI_LOCATE_* message support has been improved. These messages
  50.    can now be sent both to the desktop and document window handles.
  51.    The MDI code figures out what to do. For example, MDI_LOCATE_INSTANCE_DATA
  52.    sent to the desktop returns the instance data of the active document.
  53.    See MDI.H for specifics.
  54.  
  55. The TEST.C and TEST.RC source have been updated to illustrate the
  56. features described above. Many thanks to the folks at DB Software in
  57. Palo Alto for their suggestions and help.
  58.