home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / Chapt_17 / PrinterDevice / DevCaps.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-16  |  1.3 KB  |  32 lines

  1. //-----------------------------------------------------------------------------------//
  2. //              Windows Graphics Programming: Win32 GDI and DirectDraw               //
  3. //                             ISBN  0-13-086985-6                                   //
  4. //                                                                                   //
  5. //  Written            by  Yuan, Feng                             www.fengyuan.com   //
  6. //  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
  7. //  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
  8. //                                                                                   //
  9. //  FileName   : devcaps.h                                                              //
  10. //  Description: KDeviceCaps dialog box                                              //
  11. //  Version    : 1.00.000, May 31, 2000                                              //
  12. //-----------------------------------------------------------------------------------//
  13.  
  14. class KDeviceCaps : public KDialog
  15. {
  16.     HDC          m_hDC;
  17.     KListView m_List;
  18.  
  19.     BOOL OnInitDialog(void);
  20.  
  21.     BOOL DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  22.  
  23.     void OneCap(int index, const TCHAR * name, const TCHAR * format);
  24.  
  25. public:
  26.     
  27.     KDeviceCaps(HDC hDC)
  28.     {
  29.         m_hDC = hDC;
  30.     }
  31. };
  32.