home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CNRDTL.ZIP / CNFUNC.H < prev    next >
Text File  |  1992-09-18  |  2KB  |  43 lines

  1. // cnfunc.h -- Container utility functions
  2.  
  3. //--------------------------------------------------------------
  4. //
  5. //  cnfunc.h
  6. //
  7. //      Container Functions
  8. //
  9. //--------------------------------------------------------------
  10.  
  11. //--------------------------------------------------------------
  12. //  Data structure used to describe field information
  13. //--------------------------------------------------------------
  14.  
  15. typedef struct                  // Field (column) descriptors
  16. {
  17.     ULONG   offField;           // Offset of field in record
  18.     ULONG   flAttributes;       // Field attributes
  19.     USHORT  idTitle;            // Identifier of column title
  20.     ULONG   flTitle;            // Title Attributes
  21.     USHORT  cxWidth;            // Column width (0 = auto calc)
  22.     PSZ     pszTitle;           // Pointer to column title text
  23. } COLDESC, *PCOLDESC;
  24.  
  25.  
  26. //--------------------------------------------------------------
  27. //  Function prototypes
  28. //--------------------------------------------------------------
  29.  
  30. USHORT CnCreateDetailsView (    // Create details view
  31. HWND    hwndContainer,          // I - Handle to container window
  32. USHORT  cColumns,               // I - Number of colums
  33. COLDESC acd[],                  // IO--> column descriptor
  34. SHORT   sLastLeftColumn,        // I - Last column in left split
  35. LONG    lPctSplitBarPos,        // Percent of container width 
  36. USHORT  idTitle,                // I - container heading id
  37. HMODULE hmod);                  // I - handle to resource file
  38.  
  39. USHORT CnDestroyDetailsView (   // Destroy details view
  40. HWND    hwndContainer,          // I - Handle to container window
  41. USHORT  cColumns,               // I - Number of colums
  42. COLDESC acd[]);                 // IO--> column descriptor
  43.