Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. /*
  2. * LISTS.H
  3. *
  4. * Header file for multi-column listbox module.
  5. */
  6. typedef struct {
  7. LPTSTR lpszHeadings;
  8. } MCLBCREATESTRUCT;
  9. typedef struct {
  10. HWND hwndLB;
  11. LPTSTR pszHeadings;
  12. INT cCols;
  13. INT SortCol;
  14. } MCLBSTRUCT;
  15. #define MYLBSTYLE WS_CHILD|WS_BORDER |LBS_SORT| \
  16. WS_VSCROLL|LBS_OWNERDRAWFIXED|LBS_NOINTEGRALHEIGHT
  17. HWND CreateMCLBFrame(
  18. HWND hwndParent,
  19. LPTSTR lpszTitle, /* frame title string */
  20. UINT dwStyle, /* frame styles */
  21. HICON hIcon, /* icon */
  22. HBRUSH hbrBkgnd, /* background for heading.*/
  23. LPTSTR lpszHeadings); /* tab delimited list of headings. */
  24. /* The number of headings indicate */
  25. /* the number of collumns. */
  26. VOID AddMCLBText(LPTSTR pszSearch, LPTSTR pszReplace, HWND hwndLBFrame);
  27. INT GetMCLBColValue(LPTSTR pszSearch, HWND hwndLBFrame, int cCol);
  28. BOOL DeleteMCLBText(LPTSTR pszSearch, HWND hwndLBFrame);