home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / Chapt_03 / Handles / dcdtable.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-16  |  1.7 KB  |  50 lines

  1. #pragma once
  2.  
  3. //-----------------------------------------------------------------------------------//
  4. //              Windows Graphics Programming: Win32 GDI and DirectDraw               //
  5. //                             ISBN  0-13-086985-6                                   //
  6. //                                                                                   //
  7. //  Written            by  Yuan, Feng                             www.fengyuan.com   //
  8. //  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
  9. //  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
  10. //                                                                                   //
  11. //  FileName   : dcdtable.h                                                             //
  12. //  Description: Decode GDI handle table paer                                        //
  13. //  Version    : 1.00.000, May 31, 2000                                              //
  14. //-----------------------------------------------------------------------------------//
  15.  
  16. #include "property.h"
  17. #include "listview.h"
  18. #include "gditable.h"
  19.  
  20. class KDecodeTablePage : public KPropertySheetPage
  21. {
  22.     // overwriting
  23.     BOOL DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  24.  
  25.     KListView m_Objects;
  26.  
  27.     void TestnCount(bool testdelete);
  28.     void TestnCount(int obj, HDC hDC1, HDC hDC2, bool testdelete);
  29.     void Query(void);
  30.     void DumpGDITable(void);
  31.     void TestpUserSolidBrush(void);
  32.     void TestpUserRectRegion(void);
  33.  
  34.     void ShowDetails(unsigned index);
  35.     void Modify(unsigned index);
  36.  
  37.     KGDITable m_GDITable;
  38.  
  39. public:
  40.  
  41.     HINSTANCE m_hInst;
  42.  
  43.     bool IsGDITableAccessible(void) const
  44.     {
  45.         return m_GDITable.IsGDITableAccessible();
  46.     }
  47.  
  48.     KDecodeTablePage();
  49. };
  50.