Why doesn't the image get BitBlted to the form I've made sure there is an image but it still doesn't work.
PHP Code:int LoadPicture(HWND hwnd,HDC winHDC,double Width,double Height){
HDC ImagehDC;
LPCTSTR File;
int checkError;
File=(LPCTSTR)GlobalAlloc(GMEM_FIXED,50);
File= "C:\\Bells\\Vb6Sbs\\Less09\\Bld-up.bmp";
ImagehDC=(HDC)LoadImage(appInstance,File,IMAGE_BITMAP,Width,Height,LR_LOADFROMFILE);
if(ImagehDC==NULL){
MessageBox(hwnd,"Darn no image","Msg",MB_OK);
}
checkError=BitBlt(winHDC,0,0,Width,Height,ImagehDC,0,0,SRCCOPY);
if(checkError==0){
MessageBox(hwnd,"Darn didn't paste too form","Msg",MB_OK);
}
return 1;
}




Reply With Quote