Click to See Complete Forum and Search --> : Application Skinning -> Multiple Images


nightpwn2
March 21st, 2009, 12:03 PM
Okay,

guys i'm trying to make my close "Button" Show up, I've already made my main application background show up but I have no idea how to fix my Close Image from showing up correctly, Heres what I'm trying to do.


case WM_PAINT:
{
DestroyCaption(hWnd, 700, 515);

BITMAP bp;
PAINTSTRUCT ps;
HDC dc = BeginPaint(hWnd, &ps);
HDC skin = CreateCompatibleDC(dc);
GetObject(hSkinBitmap, sizeof(bp), &bp);
SelectObject(skin, hSkinBitmap);
BitBlt(dc, 0, 0, 700, 515, skin, 0, 0, SRCCOPY);
DeleteDC(skin);

BITMAP bp2;
HDC dc2 = BeginPaint(hWnd, &ps);
HDC close = CreateCompatibleDC(dc2);
GetObject(hBtnClose, sizeof(bp2), &bp2);
SelectObject(close, hBtnClose);
BitBlt(dc2, 0,0, 22,22,close, 0 ,0, SRCCOPY);
DeleteDC(close);
EndPaint(hWnd, &ps);

break;
}


However that Isn't showing the 2nd image/Close Image. in ANY corner what so ever.

So what can i do?

nightpwn2
March 21st, 2009, 03:10 PM
Okay, I've played around with it some more, Its still not solved however I need to know how to set A Index on the image. Because the close button is being done behind the Skin itself.