home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / Chapt_14 / Font / Charset.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-12  |  1.4 KB  |  39 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   : charset.h                                                             //
  12. //  Description: KCharSetView class                                                  //
  13. //  Version    : 1.00.000, May 31, 2000                                              //
  14. //-----------------------------------------------------------------------------------//
  15.  
  16. #define UNICODE_CHARSET 0
  17.  
  18.  
  19. class KCharSetView : public KView
  20. {
  21.     BYTE            m_nCharSet;
  22.     HFONT            m_hAnsiFont;
  23.         
  24.     int                m_width;
  25.     int                m_height;
  26.     int                m_font;
  27.     int                m_row;
  28.     
  29.     void DispRow(HDC hDC, int x0, int y0, int y, WCHAR ch, int length);
  30.  
  31. public:
  32.  
  33.     KCharSetView(void);
  34.  
  35.     virtual int OnCommand(int cmd, HWND hWnd);
  36.     virtual int OnDraw(HDC hDC, const RECT * rcPaint);
  37.  
  38. };
  39.