home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / Chapt_17 / PrinterDevice / DevPage.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-16  |  1.6 KB  |  42 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   : devpage.h                                                             //
  10. //  Description: KDevicePage page                                                    //
  11. //  Version    : 1.00.000, May 31, 2000                                              //
  12. //-----------------------------------------------------------------------------------//
  13.  
  14. class KDevicePage : public KPropertySheetPage
  15. {
  16.     HINSTANCE         m_hInstance;
  17.     PRINTER_INFO_2 * m_pInfo2;
  18.     KListView         m_infolist;
  19.  
  20.     BOOL DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  21.  
  22.     BOOL OnInitDialog(HWND hWnd);
  23.  
  24.     BOOL OnDeviceChange(HWND hWnd);
  25.     BOOL OnDeviceCaps(HWND hWnd);
  26.     BOOL OnDCAttributes(HWND hWnd);
  27.  
  28. public:
  29.  
  30.     KDevicePage(HINSTANCE hInstance)
  31.     {
  32.         m_hInstance = hInstance;
  33.         m_pInfo2    = NULL;
  34.     }
  35.  
  36.     ~KDevicePage()
  37.     {
  38.         if ( m_pInfo2 )
  39.             delete [] (BYTE *) m_pInfo2;
  40.     }
  41. };
  42.