#include "wx/msw/dibutils.h"
-#ifdef __WXWINE__
- #include <module.h>
-#endif
-
#if defined(__WIN32__)
#if !defined(__MWERKS__) && !defined(__SALFORDC__)
#include <memory.h> // for _fmemcpy()
}
// *** Create, select, realize, deselect, and delete the palette
-#ifdef __WXWINE__
- ScreenDC = GetDC((HWND)NULL);
-#else
ScreenDC = GetDC(NULL);
-#endif
ScreenPalette = CreatePalette((LOGPALETTE *)&Palette);
if (ScreenPalette)
bOK = DeleteObject(ScreenPalette);
}
-#ifdef __WXWINE__
- nOK = ReleaseDC((HWND)NULL, ScreenDC);
-#else
nOK = ReleaseDC(NULL, ScreenDC);
-#endif
return;
}
LPVOID p;
OFSTRUCT of;
-#if defined(WIN32) || defined(_WIN32)
+#if defined(__WIN32__)
#define GetCurrentInstance() GetModuleHandle(NULL)
#else
#define GetCurrentInstance() (HINSTANCE)SELECTOROF((LPVOID)&of)
off = _llseek(fh,0L,SEEK_CUR);
if (sizeof(bf) != _lread(fh,(LPSTR)&bf,sizeof(bf)))
- return FALSE;
+ return NULL;
/*
* do we have a RC HEADER?
}
if (sizeof(bi) != _lread(fh,(LPSTR)&bi,sizeof(bi)))
- return FALSE;
+ return NULL;
/*
* what type of bitmap info is this?