home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / SAMPLES / SHOWGDI / VIEW.H_ / VIEW.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.3 KB  |  41 lines

  1. /****************************************************************************
  2.  View.h
  3.  
  4.  The View module handles the display of the drawing view.
  5.  
  6. ****************************************************************************/
  7.  
  8.  
  9. /****************************************************************************
  10.    Constants
  11. ****************************************************************************/
  12.  
  13. /* Drawing scales */
  14. #define MIN_SCALE          1
  15. #define MAX_SCALE          256
  16. #define DEFAULT_SCALE      8
  17.  
  18.  
  19. /****************************************************************************
  20.    Globals
  21. ****************************************************************************/
  22.  
  23. extern POINT   drawSize;      /* drawing size in pixels */
  24. extern HDC     drawDC;        /* drawing DC */
  25. extern BOOL    isBlank;       /* TRUE iff drawing is blank */
  26. extern BOOL    pixGrid;       /* TRUE iff drawing has pixel grid and scale */
  27. extern int     viewScale;     /* viewing scale multiple */
  28.  
  29.  
  30. /****************************************************************************
  31.    Functions
  32. ****************************************************************************/
  33.  
  34. void ViewCmd( int item );
  35. int NewView( void );
  36. void ClearView( void );
  37. void PaintView( HDC hdc, RECT r );
  38. void RefreshView( BOOL erase );
  39. void CheckViewMenuItems( HMENU hMenu );
  40.  
  41.