Popular topic but can't get it to work... I used two functions... LoadImage & DrawState
My code
Nothing shows on my window.... Any suggestions? My image is a resource fileCode:WM_CREATE { hBmp = LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP1), IMAGE_BMP, 0, 0, LR_DEFAULTSIZE); } ............... WM_PAINT { hdc = BeginPaint(hwnd, &pntS); DrawState(hdc, NULL, NULL, (LPARAM)hBmp, 0, xPos, yPos, 0, 0, DST_BITMAP | DSS_NORMAL); EndPaint(hwnd, &pntS); }