home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / Profiler / heapmon / refsview.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-04  |  1.2 KB  |  60 lines

  1. // refsview.hpp
  2. //
  3. // Created 10/08/98
  4. //
  5. // (C)Copyright 1998-1999 Microsoft Corporation, All rights reserved.
  6. //
  7.  
  8. #ifndef __REFSVIEW_HPP__
  9. #define __REFSVIEW_HPP__
  10.  
  11. #include "objview.hpp"
  12.  
  13.  
  14. #define WC_HEAPMONITOR_OBJREFSVIEWER "JavaHeapMonitor_ObjectReferencesViewerClass"
  15.  
  16.  
  17. class ObjectReferencesViewer : public ObjectViewer
  18. {
  19. private:
  20.  
  21.     HTREEITEM m_htiroot;
  22.  
  23.  
  24.     //------------------------------------------------------------------------
  25.     // UI stuff
  26.     
  27.     LRESULT CALLBACK WndProc (HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam);
  28.  
  29.     BOOL GetItemText (HTREEITEM hti, PSTR &psztext, int &cchmaxtext);
  30.  
  31.  
  32.     //------------------------------------------------------------------------
  33.     
  34.     // IHeapMonitorClient methods
  35.  
  36.     STDMETHODIMP OnStoppedExecution ()
  37.     {
  38.         return E_UNEXPECTED;
  39.     }
  40.     
  41.     STDMETHODIMP OnResumeExecution ()
  42.     {
  43.         SendMessage(m_hwnd, WM_CLOSE, 0, 0);
  44.         return S_OK;
  45.     }
  46.  
  47.  
  48.     //------------------------------------------------------------------------
  49.  
  50.     static int PopulateReferencesCB (ID id, ObjectID vmid, PVOID token);
  51.     
  52. public:
  53.  
  54.     BOOL Initialize (HeapMonitorManager *mgr, ObjectID vmid);
  55. };
  56.  
  57.  
  58. #endif /* __REFSVIEW_HPP__ */
  59.  
  60.