home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / clip4win / clip4win.exe / C4W30E.HUF / INCLUDE / MDI.CH < prev    next >
Text File  |  1993-10-11  |  2KB  |  54 lines

  1. ////////////////////////////
  2. //
  3. //    Clip-4-Win MDI definitions
  4. //
  5. //    Copyright (C) 1993 Skelton Software, Kendal Cottage, Hillam, Leeds, UK.
  6. //    All Rights Reserved.
  7. //
  8. ////////////////////////////
  9.  
  10. #ifndef    C4W_MDI_CH
  11. #define    C4W_MDI_CH
  12.  
  13.  
  14. // Array elements of aMcs[], which is used with SendMessage() to the
  15. // MDI client (so it will create a new MDI child)
  16. //
  17. // (these correspond to the members of the Windows MDICREATESTRUCT structure)
  18.  
  19. #define    MCS_szClass    1    // window class of MDI child
  20. #define    MCS_szTitle    2    // title for the new MDI child window
  21. #define    MCS_hOwner    3    // app instance doing the create
  22. #define    MCS_x        4    // x co-ord (e.g. CW_USEDEFAULT)
  23. #define    MCS_y        5    // y co-ord (e.g. CW_USEDEFAULT)
  24. #define    MCS_cx        6    // width (e.g. CW_USEDEFAULT)
  25. #define    MCS_cy        7    // height (e.g. CW_USEDEFAULT)
  26. #define    MCS_style    8    // window style (WS_* values)
  27. #define    MCS_lParam    9    // 32-bit app-specific value
  28.  
  29. #define    MCS_LENGTH    9    // length of array
  30.  
  31. #define    MCS_STRUCT_DEF    "str[2],int[5],dword,long"    // for a2bin(), bin2a()
  32.  
  33.  
  34.  
  35. // Array elements of aCcs[], which is used with CreateWindow("mdiclient", ...)
  36. // so the MDI client knows info it needs
  37. //
  38. // (these correspond to the members of the Windows CLIENTCREATESTRUCT structure)
  39.  
  40. #define    CCS_hWindowMenu    1    // menu handle of frame's menu item called "Window"
  41. #define    CCS_idFirstChild 2    // id of 1st MDI child
  42.                 // N.B. must have a reasonable number of id's
  43.                 //    after this one free, as MDI children
  44.                 //    use consecutive id's
  45.  
  46. #define    CCS_LENGTH    2    // length of array
  47.  
  48. #define    CCS_STRUCT_DEF    "int[2]"    // for a2bin(), bin2a()
  49.  
  50.  
  51.  
  52. #endif    // C4W_MDI_CH
  53.  
  54.