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.

97 lines
1.7 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. RsUtil.h
  5. Abstract:
  6. Utility formatting functions.
  7. Author:
  8. Art Bragg 10/8/97
  9. Revision History:
  10. --*/
  11. #define IDS_BYTES 33000
  12. #define IDS_ORDERKB 33001
  13. #define IDS_ORDERMB 33002
  14. #define IDS_ORDERGB 33003
  15. #define IDS_ORDERTB 33004
  16. #define IDS_ORDERPB 33005
  17. #define IDS_ORDEREB 33006
  18. #ifndef RC_INVOKED
  19. HRESULT RsGuiFormatLongLong(
  20. IN LONGLONG number,
  21. IN BOOL bIncludeUnits,
  22. OUT CString& sFormattedNumber
  23. );
  24. HRESULT RsGuiFormatLongLong4Char(
  25. IN LONGLONG number, // in bytes
  26. OUT CString& sFormattedNumber
  27. );
  28. void RsGuiMakeVolumeName(
  29. CString szName,
  30. CString szLabel,
  31. CString& szDisplayName
  32. );
  33. CString RsGuiMakeShortString(
  34. IN CDC* pDC,
  35. IN const CString& StrLong,
  36. IN int Width
  37. );
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CRsGuiOneLiner window
  40. class CRsGuiOneLiner : public CStatic
  41. {
  42. // Construction
  43. public:
  44. CRsGuiOneLiner();
  45. // Attributes
  46. public:
  47. // Operations
  48. public:
  49. // Overrides
  50. // ClassWizard generated virtual function overrides
  51. //{{AFX_VIRTUAL(CRsGuiOneLiner)
  52. protected:
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. public:
  56. virtual ~CRsGuiOneLiner();
  57. CToolTipCtrl* m_pToolTip;
  58. void EnableToolTip( BOOL enable, const TCHAR* pTipText = 0 );
  59. // Generated message map functions
  60. protected:
  61. //{{AFX_MSG(CRsGuiOneLiner)
  62. //}}AFX_MSG
  63. LRESULT OnSetText( WPARAM wParam, LPARAM lParam);
  64. DECLARE_MESSAGE_MAP()
  65. CString m_LongTitle;
  66. CString m_Title;
  67. };
  68. /////////////////////////////////////////////////////////////////////////////
  69. #endif