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