// 下面这两行是vc自己生成的资源文件里面的定义: 
// bmp文件 和 宏定义 
//xx.rc 里面有定义: IDB_BITMAP              BITMAP  DISCARDABLE     "bitmap1.bmp" 
//Resoure.h   : #define IDB_BITMAP     129 // 消息处理 
// 程序正常执行!!! 
case WM_PAINT: HDC hdc,hdcmem; 
HBITMAP hbmp; 
BITMAP bmp; // Get hdc 
hdc=GetDC(hWnd); // get memery device context  
hdcmem=CreateCompatibleDC(hdc); // get handle of bmp file 
// 路径对吗?  
hbmp=LoadBitmap(hInst,MAKEINTRESOURCE(IDB_BITMAP)); // get infomation of bmp file 
GetObject(hbmp,sizeof(BITMAP),(LPVOID)&bmp); // select bmp into memery hdc  
SelectObject(hdcmem,hbmp); //怎么没有显示出来?为什么 
// show bmp in hdc 
BitBlt(hdc,0,0,bmp.bmWidth,bmp.bmWidth,hdcmem,0,0,SRCCOPY); DeleteDC(hdcmem); 
ReleaseDC(hWnd,hdc); break;