Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.3 KiB

  1. /****************************************************************************
  2. * *
  3. * FILE : SHOWDIB.H *
  4. * *
  5. * DESCRIPTION : Header/include file for ShowDIB example. *
  6. * *
  7. ****************************************************************************/
  8. // Macros to display/remove hourglass cursor for lengthy operations
  9. #define StartWait() hcurSave = SetCursor(LoadCursor(NULL,IDC_WAIT))
  10. #define EndWait() SetCursor(hcurSave)
  11. #define WIDTHBYTES(i) ((i+31)/32*4) // Round off to the closest byte
  12. extern DWORD dwOffset; // Current position if DIB file pointer
  13. /***********************************************************/
  14. /* Declarations of functions used in dib.c module */
  15. /***********************************************************/
  16. WORD PaletteSize (VOID FAR * pv);
  17. WORD DibNumColors (VOID FAR * pv);
  18. HANDLE DibFromBitmap (HBITMAP hbm, DWORD biStyle, WORD biBits, HPALETTE hpal);
  19. HBITMAP BitmapFromDib (HANDLE hdib, HPALETTE hpal);