home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / WING.H < prev    next >
C/C++ Source or Header  |  1997-02-14  |  2KB  |  83 lines

  1. /*****************************************************************************\
  2. *
  3. * wing.h - WinG functions, types, and definitions
  4. *
  5. *          Copyright (c) 1994 Microsoft Corp. All rights reserved.
  6. *
  7. \*****************************************************************************/
  8.  
  9. #ifndef _INC_WING
  10. #define _INC_WING
  11. #pragma option -b
  12.  
  13. #ifndef _INC_WINDOWS
  14. #pragma option -b.
  15. #include <windows.h>    /* Include windows.h if not already included */
  16. #pragma option -b
  17. #endif
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {            /* Assume C declarations for C++ */
  21. #endif
  22.  
  23. #if defined(WIN32) || defined(_WIN32)
  24. #define WINGAPI WINAPI
  25. #else
  26. #define WINGAPI WINAPI _loadds
  27. #endif
  28.  
  29.  
  30. /***** WingDC and WinGBitmap *************************************************/
  31.  
  32. HDC WINGAPI WinGCreateDC( void );
  33.  
  34. BOOL WINGAPI WinGRecommendDIBFormat( BITMAPINFO FAR *pFormat );
  35.  
  36. HBITMAP WINGAPI WinGCreateBitmap( HDC WinGDC, BITMAPINFO const FAR *pHeader,
  37.         void FAR *FAR *ppBits );
  38.  
  39. void FAR *WINGAPI WinGGetDIBPointer( HBITMAP WinGBitmap,
  40.         BITMAPINFO FAR *pHeader );
  41.  
  42. UINT WINGAPI WinGGetDIBColorTable( HDC WinGDC, UINT StartIndex,
  43.         UINT NumberOfEntries, RGBQUAD FAR *pColors );
  44.  
  45. UINT WINGAPI WinGSetDIBColorTable( HDC WinGDC, UINT StartIndex,
  46.         UINT NumberOfEntries, RGBQUAD const FAR *pColors );
  47.  
  48.  
  49. /***** Halftoning ************************************************************/
  50.  
  51. HPALETTE WINGAPI WinGCreateHalftonePalette( void );
  52.  
  53. typedef enum WING_DITHER_TYPE
  54. {
  55.     WING_DISPERSED_4x4,
  56.     WING_DISPERSED_8x8,
  57.  
  58.     WING_CLUSTERED_4x4
  59.  
  60. } WING_DITHER_TYPE;
  61.  
  62. HBRUSH WINGAPI WinGCreateHalftoneBrush( HDC Context, COLORREF crColor,
  63.         WING_DITHER_TYPE DitherType );
  64.  
  65.  
  66. /***** Blts ******************************************************************/
  67.  
  68. BOOL WINGAPI WinGBitBlt( HDC hdcDest, int nXOriginDest,
  69.         int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc,
  70.         int nXOriginSrc, int nYOriginSrc );
  71.  
  72. BOOL WINGAPI WinGStretchBlt( HDC hdcDest, int nXOriginDest,
  73.         int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc,
  74.         int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc );
  75.  
  76. #ifdef __cplusplus
  77. }                       /* End of extern "C" */
  78. #endif
  79.  
  80. #pragma option -b.
  81. #endif // _INC_WING
  82.  
  83.