#include #include"CreateDIBSectionFromFile248.h" LRESULT CALLBACK WindowProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; static BITMAPINFO bmpInfo; static LPBYTE lpPixel; static HBITMAP hBmp; static HDC hMemDC; static int width,height,length; int x,y; switch(uMsg) { case WM_CREATE: length=CreateDIBSectionFromFile248("TOKOPUYO200.bmp",&hBmp,(void**)&lpPixel,&bmpInfo,BY); width=bmpInfo.bmiHeader.biWidth; height=bmpInfo.bmiHeader.biHeight; hMemDC=CreateCompatibleDC(NULL); SelectObject(hMemDC,hBmp); //•`‰æ for(y=height/10;y