00001 #ifndef DIBDLL_DEFINED 00002 #define DIBDLL_DEFINED 00003 00004 #include "dibclass.h" 00005 #include "dibview.h" 00006 #include "dibapi.h" 00007 00008 // LOGPALETTE's version number. 00009 #define PALVERSION 0x300 00010 00011 // WIDTHBYTES takes # of bits in a scan line and rounds up to nearest 00012 // word. 00013 #define WIDTHBYTES(bits) (((bits) + 31) / 32 * 4) 00014 00015 // Given a pointer to a DIB header, return TRUE if is a Windows 3.x 00016 // DIB, false if otherwise (PM style DIB). 00017 #define IS_WIN3x_DIB(lpbi) ((BOOL)((*(LPDWORD) (lpbi)) == sizeof (BITMAPINFOHEADER))) 00018 00019 // Given a pointer to a DIB header, return TRUE if is an OS/2 PM 00020 // DIB, false if otherwise (Windows 3.x style DIB). 00021 #define IS_OS2PM_DIB(lpbi) ((BOOL)((*(LPDWORD) (lpbi)) == sizeof (BITMAPCOREHEADER))) 00022 00023 #endif