home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / mdi / mdi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-08  |  4.5 KB  |  82 lines

  1. // Constants
  2. // ---------
  3.    #define MDI_DESKTOPCLASS             "CanyonMDIDesktop"
  4.    #define MDI_DOCUMENTCLASS            "CanyonMDIDocument"
  5.    #define MDI_MODNAME                  "MDI.DLL"
  6.  
  7.  
  8. // Messages
  9. // --------
  10.    #define MDI_MSG_LOCATE_DESKTOP_DATA  WM_USER+1
  11.                                         // mp1 : NULL
  12.                                         // mp2 : NULL
  13.  
  14.    #define MDI_MSG_LOCATE_DOCUMENT_DATA WM_USER+2
  15.                                         // mp1 : NULL
  16.                                         // mp2 : NULL
  17.  
  18.    #define MDI_MSG_LOCATE_INSTANCE_DATA WM_USER+3
  19.                                         // mp1 : NULL
  20.                                         // mp2 : NULL
  21.  
  22.  
  23. // WM_CONTROL Notification codes
  24. // -----------------------------
  25.    #define MDI_NOTIFY_CREATE_DESKTOP    1
  26.                                         // mp1 : MPFROM2SHORT (idDesktop, MDI_NOTIFY_CREATE_DESKTOP)
  27.                                         // mp2 : PVOID pvDeskData
  28.  
  29.    #define MDI_NOTIFY_DESTROY_DESKTOP   2
  30.                                         // mp1 : MPFROM2SHORT (idDesktop, MDI_NOTIFY_DESTROY_DESKTOP)
  31.                                         // mp2 : PVOID pvDeskData
  32.  
  33.    #define MDI_NOTIFY_CREATE_DOCUMENT   3
  34.                                         // mp1 : MPFROM2SHORT (idDesktop, MDI_NOTIFY_CREATE_DOCUMENT)
  35.                                         // mp2 : PVOID pvInstData
  36.  
  37.    #define MDI_NOTIFY_DESTROY_DOCUMENT  4
  38.                                         // mp1 : MPFROM2SHORT (idDesktop, MDI_NOTIFY_DESTROY_DOCUMENT)
  39.                                         // mp2 : PVOID pvDocData
  40.  
  41.    #define MDI_NOTIFY_DESTROY_INSTANCE  5
  42.                                         // mp1 : MPFROM2SHORT (idDesktop, MDI_NOTIFY_DESTROY_INSTANCE)
  43.                                         // mp2 : PVOID pvInstData
  44.  
  45.  
  46. // Function Declarations
  47. // ---------------------
  48.    HWND    FAR      MDICreateDesktop    (PFNWP, ULONG, PCHAR, HMODULE, USHORT, PHWND, USHORT, USHORT, PCHAR, PCHAR);
  49.                                         // PFNWP   : your desktop window procedure
  50.                                         // ULONG   : FCF_* flags for the desktop frame
  51.                                         // PCHAR   : initial desktop title text
  52.                                         // HMODULE : module handle for resources (or NULL if in .EXE)
  53.                                         // USHORT  : id of resources
  54.                                         // PHWND   : pointer to area in which handle to desktop client is returned
  55.                                         // USHORT  : size of re-entrant desktop data
  56.                                         // USHORT  : id of desktop frame
  57.                                         // PCHAR   : text of menu entry before which the "window" menu entry is inserted
  58.                                         // PCHAR   : desired text of "window" menu entry
  59.  
  60.    HWND    FAR      MDICreateDocument   (PFNWP, HWND, ULONG, PCHAR, HMODULE, USHORT, PHWND, USHORT, USHORT);
  61.                                         // PFNWP   : your document window procedure
  62.                                         // HWND    : handle to the desktop client window, as returned by MDICreateDesktop
  63.                                         // ULONG   : FCF_* flags for the document frame
  64.                                         // PCHAR   : initial document title
  65.                                         // HMODULE : module handle for resources (or NULL if in .EXE)
  66.                                         // USHORT  : id of resources
  67.                                         // PHWND   : pointer to area in which handle to document client is returned
  68.                                         // USHORT  : size of re-entrant document data
  69.                                         // USHORT  : size of re-entrant document instance data
  70.  
  71.    MRESULT EXPENTRY MDIDesktopWndProc   (HWND, USHORT, MPARAM, MPARAM);
  72.                                         // HWND    : window handle
  73.                                         // USHORT  : message id
  74.                                         // MPARAM  : mp1
  75.                                         // MPARAM  : mp2
  76.  
  77.    MRESULT EXPENTRY MDIDocumentWndProc  (HWND, USHORT, MPARAM, MPARAM);
  78.                                         // HWND    : window handle
  79.                                         // USHORT  : message id
  80.                                         // MPARAM  : mp1
  81.                                         // MPARAM  : mp2
  82.