home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / Chapt_17 / PrinterDevice / DCAttr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-16  |  1.4 KB  |  34 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   : dcattr.h                                                              //
  10. //  Description: KDCAttributes dialog box                                            //
  11. //  Version    : 1.00.000, May 31, 2000                                              //
  12. //-----------------------------------------------------------------------------------//
  13.  
  14. class KDCAttributes : public KDialog
  15. {
  16.     HDC          m_hDC;
  17.     HWND      m_hWnd;
  18.  
  19.     KListView m_List;
  20.  
  21.     BOOL OnInitDialog(void);
  22.  
  23.     BOOL DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  24.     void Add(LPCTSTR pszAttribute, LPCTSTR pszFormat, ...);
  25.  
  26.     void DumpDC(HDC hDC);
  27.  
  28. public:
  29.     
  30.     KDCAttributes(HDC hDC)
  31.     {
  32.         m_hDC = hDC;
  33.     }
  34. };