#include #include"CreateDIBfromFile248.h" LRESULT CALLBACK WindowProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; static LPBITMAPINFO lpBmpInfo; static LPBYTE lpPixel; static int width,height,length,x,y; switch(uMsg) { case WM_CREATE: length=CreateDIBfromFile248("TOKOPUYO200.bmp",(void**)&lpPixel,&lpBmpInfo,BY); width=lpBmpInfo->bmiHeader.biWidth; height=lpBmpInfo->bmiHeader.biHeight; //•`‰æ for(y=height/5;y