Here is the code of the program. I'm setting a rotation XFORM, and then calling BitBlt. I load a bitmap file from the current directory for the BitBlt.
hdc = BeginPaint(hWnd, &ps);
double angle = 0.385398163;
XFORM xf;
xf.eDx = 0;
xf.eDy = 0;
xf.eM11 = cos(angle);
xf.eM12 = sin(angle);
xf.eM21 = -sin(angle);
xf.eM22 = cos(angle);
SetGraphicsMode(hdc, GM_ADVANCED);
SetWorldTransform(hdc, &xf);
HBITMAP hbmp = (HBITMAP) LoadImage( NULL, L"a.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
HDC hmemdc = CreateCompatibleDC(hdc);
SelectObject(hmemdc, hbmp);
BitBlt(hdc, 100, 0, 150, 50, hmemdc, 0, 0, SRCCOPY);
EndPaint(hWnd, &ps);