I have created a window with createwindow() api using VS2005 in C++ on Windows Vista
My requirement is to draw an image (of any format) on that window. I am not usin
void LoadScreen(HWND hWnd) { RECT rect; HDC hdc = GetDC(hWnd); HBRUSH brush = CreatePatternBrush((HBITMAP)LoadImage(NULL, L"file.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE)); GetWindowRect(hWnd, &rect); FillRect(hdc, &rect, brush); DeleteObject(brush); ReleaseDC(hWnd, hdc); }