FerchogtX i want your help man i know you can do this...
I found out with the blitter preview deactivated and using a smaller image than 608 x 448
(in my case i usa that size) but if i select a 304 x 224 image it will not stretch...
I think i need a alternate code for this...so it will stretch any image size...
// This is for background image, performs the needed stretching
// for avoiding the use of more images for this :)
void StretchBitmap(HDC hDC, HWND hWnd, HBITMAP hBitmap)
{
HDC memDC; BITMAP bm; RECT re;
memDC = CreateCompatibleDC(hDC);
SelectObject(memDC, hBitmap);
GetObject(hBitmap, sizeof(BITMAP), (LPSTR)&bm);
GetClientRect(hWnd, &re);
if (bMenuEnabled) {
StretchBlt(hDC, 0, 25, re.right, re.bottom-25, memDC, 0, 0, 608, 448, SRCCOPY);
} else {
StretchBlt(hDC, 0, 0, re.right, re.bottom, memDC, 0, 0, 608, 448, SRCCOPY);
}
DeleteDC(memDC);
I hope you understand what i mean ^^ ...
Thanx in advance ...i tryied to do alternate code but doesnt work :-(
SeeYaa!!!