home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / numega / sc501.exe / data1.cab / Examples / CSTATBMP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  1.3 KB  |  51 lines

  1. /*
  2.  * CStatBmp.h
  3.  * $Header: /bcsample/BUGBNCHX/CSTATBMP.H 1     5/28/96 1:11p Dave $
  4.  *
  5.  * Description:
  6.  *  Routines that implement a Bitmap display control.  Just
  7.  * subclass an existing static control and a bitmap will be displayed.
  8.  * The name assigned to the control is the bitmap that will be loaded.
  9.  *
  10.  * Notes:
  11.  *  <implementation notes go here>
  12.  *
  13.  ***********************************************************************
  14.  *
  15.  * Nu-Mega Technologies, Inc.
  16.  * P.O. Box 7780
  17.  * Nashua, NH 03060
  18.  *
  19.  * (c) Copyright 1994, 1995 Nu-Mega Technologies, Inc.
  20.  * ALL RIGHTS RESERVED.
  21.  *
  22.  ***********************************************************************
  23.  *
  24.  **********************************************************************/
  25. #ifndef _CSTATBMP_H
  26. #define _CSTATBMP_H
  27.  
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31.  
  32.  
  33. // Handle to a DIB.  The DECLARE_HANDLE macro comes from WINNT.H
  34. DECLARE_HANDLE ( HDIB ) ;
  35.  
  36. BOOL StaticBitmap_Init ( HWND hwndStatic ) ;
  37. UINT StaticBitmap_RealizeDIBPalette ( HWND hStatic ) ;
  38. void StaticBitmap_CleanUp ( HWND hStatic ) ;
  39.  
  40. #define RECTWIDTH(lpRect)  ( (lpRect)->right - (lpRect)->left )
  41. #define RECTHEIGHT(lpRect) ( (lpRect)->bottom - (lpRect)->top )
  42.  
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48.  
  49. #endif      // _CSTATBMP_H
  50.  
  51.