Leaked source code of windows server 2003
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.

70 lines
1.8 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. lbcolw.hxx
  7. Header file for the listbox column widths class
  8. FILE HISTORY:
  9. CongpaY 12-Jan-1993 Created.
  10. JonN 23-Sep-1993 Added virtual ReloadColumnWidths
  11. */
  12. #ifndef _LBCOLW_HXX_
  13. #define _LBCOLW_HXX_
  14. DLL_CLASS LB_COL_WIDTHS;
  15. /*************************************************************************
  16. NAME: LB_COL_WIDTHS
  17. SYNOPSIS:
  18. PARENT:
  19. USES:
  20. NOTES:
  21. HISTORY:
  22. CongpaY 12-Jan-1993 Created.
  23. **************************************************************************/
  24. DLL_CLASS LB_COL_WIDTHS : public BASE
  25. {
  26. private:
  27. UINT _cColumns;
  28. UINT _cNonFontColumns;
  29. UINT * _pdxWidth;
  30. APIERR StretchForFonts( HWND hWnd,
  31. const WORD * pdxRawWidth );
  32. public:
  33. LB_COL_WIDTHS ( HWND hWnd,
  34. HINSTANCE hmod,
  35. const IDRESOURCE & idres,
  36. UINT cColumns,
  37. UINT cNonFontColumns = 1 );
  38. ~LB_COL_WIDTHS ();
  39. virtual APIERR ReloadColumnWidths( HWND hWnd,
  40. HINSTANCE hmod,
  41. const IDRESOURCE & idres );
  42. UINT QueryCount( void ) const
  43. { return _cColumns; }
  44. UINT * QueryColumnWidth ( void ) const
  45. { return _pdxWidth; }
  46. };
  47. #endif // LB_COL_WIDTHS.