Note: Organize your documents from the Web (1) Loading bitmapsHANDLE LoadImage (hinstance source entity, LPCTSTR name, uint bitmap type, int load width, int load height, UINT load mode); Bitmap type: Image_bitmap, image_cursor, image_icon load mode: Load from File Lr_loadfromfile(2) Setting up memory DCHDC CreateCompatibleDC (HDC hdc);D ELETEDC (hdc hdc);(3) selecting Bitmap objectsHgdiobj SelectObject (HDC hdc, hgdiobj GDI object);(4) StickersBOOL BitBlt (HDC destdc,int destx,int desty,int destwidth,int destheight,hdc srcdc,int srcx,int srcy,dword map mode); Map mode: srccopy: Paste the source bitmap onto the destination DC Srcand: The source bitmap and the destination DC do an "and" Operation Srcpaint: the source bitmap and the destination DC do "OR" operations
= (HBITMAP) LoadImage (hInst, make = CreateCompatibleDC (hdc); SelectObject (HMDC,HBITMAP); BITMAP bmp; GetObject (hbitmap,sizeof(BMP),&BMP); BITBLT (hdc,0,0, BMP.BMWIDTH,BMP.BMHEIGHT,HMDC,0,0
Win32 SDK shows a method for loading a bitmap