home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activedocument / dfv / strmvwr.h < prev    next >
C/C++ Source or Header  |  1995-02-13  |  2KB  |  66 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. //  File:       strmvwr.h
  7. //
  8. //  Contents:   Stream viewer window class definition.
  9. //
  10. //  Classes:    CStreamView
  11. //
  12. //  Functions:
  13. //
  14. //  History:    6-27-94   stevebl   Created
  15. //
  16. //----------------------------------------------------------------------------
  17.  
  18. #ifndef __STRMVWR_H__
  19. #define __STRMVWR_H__
  20. #include <cwindow.h>
  21. #include "dfv.h"
  22. #include "mwclass.h"
  23.  
  24. #ifdef __cplusplus
  25.  
  26. //+---------------------------------------------------------------------------
  27. //
  28. //  Class:      CStreamView
  29. //
  30. //  Purpose:    implements a stream viewer window
  31. //
  32. //  Interface:  CStreamView  -- constructor
  33. //              InitInstance -- instantiates an instance of the viewer
  34. //
  35. //  History:    6-27-94   stevebl   Created
  36. //
  37. //  Notes:      only the public interface is described by this comment
  38. //
  39. //----------------------------------------------------------------------------
  40.  
  41. class CStreamView: public CHlprWindow
  42. {
  43. public:
  44.     CStreamView(HWND hlb, LISTBOXELEMENT * ple);
  45.     BOOL InitInstance(HINSTANCE hInst, int nCmdShow);
  46. protected:
  47.     ~CStreamView();
  48.     LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
  49. private:
  50.     HWND _hlbParent;
  51.     HWND _hlb;
  52.     LONG _lIndex;
  53.     LISTBOXELEMENT * _ple;
  54.     COLORREF _crTextHigh;
  55.     COLORREF _crBkHigh;
  56.     COLORREF _crTextNorm;
  57.     COLORREF _crBkNorm;
  58.     WORD _wWidth;
  59.     DWORD _cbSize;
  60.     TEXTMETRIC _tm;
  61.     HFONT _hfListBox;
  62. };
  63.  
  64. #endif // __cplusplus
  65. #endif // __STRMVWR_H__
  66.