Introduction - If you have any usage issues, please Google them yourself
From a. Bmp file to read data (including BITMAPINFOHEADER, palette and the actual image data), store it in a global memory handle hImgData, this hImgData in later image processing procedures used. Also fill in a global variable of type HBITMAP hBitmap and a global variable of type HPALETTE hPalette. These two variables will be used when handling the WM_PAINT message, used to display bitmap. The function of the two parameters are used to display the bitmap window handle, and a. Bmp file name (full path). When the function is successful, returns TRUE, otherwise returns FALSE.