home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OWNDRW.ZIP / OWNDRAW.H < prev   
Text File  |  1992-07-03  |  1KB  |  39 lines

  1. /*********************************************************************
  2.  *  
  3.  *  OWNDRAW.H
  4.  *
  5.  *  This file contains the definitions and function prototypes for
  6.  *  the owner draw list box functions.  These functions allow for
  7.  *  list boxes to maintain column alignment while using proportional
  8.  *  fonts.
  9.  *                                          
  10.  *  Copyright (c) 1992 by ASH Software, Inc.
  11.  *                                                                    
  12.  *  Update History                                                    
  13.  *                                                                    
  14.  *    07/03/92 - Created source code
  15.  *                                                                    
  16.  *********************************************************************/
  17.  
  18. #if !defined(OWNDRAW__H)
  19.  
  20. //  Define function constants
  21.  
  22. #define AVERAGE_WIDTH       0 // Retrieves lAveCharWidth from font
  23. #define MAXIMUM_WIDTH       1 // Retrieves lMaxCharInc from font
  24. #define MAX_TEXT_CHARS    255 // Maximum length of listbox string
  25.  
  26. //  Function prototypes
  27.  
  28. MRESULT EXPENTRY ODInitLBWidthHeight(HWND hListBox,SHORT sfCharWidth,
  29.   SHORT sMaxNumberOfCharacters,LONG *lCharWidth);
  30. MRESULT EXPENTRY ODDrawLBItems(POWNERITEM pOwnerItem,
  31.   LONG lCharWidth,SHORT *psTabStops);
  32.  
  33. //  End of OWNDRAW.H
  34.  
  35. #define OWNDRAW__H
  36. #endif
  37.  
  38.  
  39.