home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / LISTCTRL.PAK / LISTVIEW.H < prev    next >
Encoding:
Text File  |  1997-05-06  |  1.4 KB  |  58 lines

  1. LRESULT MsgNotify(HWND, UINT, WPARAM, LPARAM);
  2. int CALLBACK ListViewCompareProc(LPARAM, LPARAM, LPARAM);
  3. HWND WINAPI CreateListView(HWND hwndParent);
  4. void SwitchView(HWND, DWORD);
  5.  
  6.  
  7. // Constants
  8.  
  9. #define IDC_NUMCOLUMNS        7
  10. #define IDD_LISTVIEW        100
  11. //#define IDC_NUMITEMS          7
  12. #define IDC_NUMITEMS          5
  13.  
  14. #define IDC_MAXCOLUMNHDG     31
  15. #define IDC_MAXCOMPANYLEN    31
  16. #define IDC_MAXSYMBOLLEN      6
  17. #define IDC_MAXEXCHANGELEN   10
  18. #define IDC_MAXNEWSLEN        4
  19. #define IDC_MAXDOLLARLEN      4
  20.  
  21. #define LVIS_GCNOCHECK  0x1000
  22. #define LVIS_GCCHECK    0x2000
  23.  
  24. // Numeric constants for the stock icons
  25.  
  26. #define IDC_ONE    1
  27. #define IDC_BORL   2
  28. #define IDC_INTC   3
  29. #define IDC_EK     4
  30. #define IDC_MSFT   5
  31.  
  32. // String table constants for listview column headings.
  33. // These begin with 3 because of the global string table
  34. // entries in GLOBALS.H
  35.  
  36. #define IDS_COMPANYCOLUMN     3
  37. #define IDS_SYMBOLCOLUMN      4
  38. #define IDS_EXCHANGECOLUMN    5
  39. #define IDS_HIGHCOLUMN        6
  40. #define IDS_LOWCOLUMN         7
  41. #define IDS_CLOSECOLUMN       8
  42. #define IDS_NEWSCOLUMN        9
  43.  
  44. #define IDB_CHECKSTATES       1
  45.  
  46. // Stock info struct
  47.  
  48. typedef struct tagSTOCKINFO
  49. {
  50.     char szCompany [IDC_MAXCOMPANYLEN];
  51.     char szSymbol  [IDC_MAXSYMBOLLEN];
  52.     char szExchange[IDC_MAXEXCHANGELEN];
  53.     UINT iHigh;
  54.     UINT iLow;
  55.     UINT iClose;
  56.     char szNews[IDC_MAXNEWSLEN];
  57. }STOCKINFO;
  58.