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

  1. // instview.hpp
  2. //
  3. // Created 01/14/99
  4. //
  5. // (C)Copyright 1999 Microsoft Corporation, All rights reserved.
  6. //
  7.  
  8. #ifndef __INSTVIEW_HPP__
  9. #define __INSTVIEW_HPP__
  10.  
  11. #include "objview.hpp"
  12.  
  13.  
  14. #define WC_HEAPMONITOR_CLSINSTVIEWER "JavaHeapMonitor_ClassInstancesViewerClass"
  15.  
  16.  
  17. class ClassInstancesViewer : 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 PopulateInstancesCB (ID id, ObjectID vmid, PVOID token);
  51.     
  52. public:
  53.  
  54.     BOOL Initialize (HeapMonitorManager *mgr, CLASSID cls);
  55. };
  56.  
  57.  
  58. #endif /* __INSTVIEW_HPP__ */
  59.  
  60.