-
March 21st, 2009, 12:03 PM
#1
Application Skinning -> Multiple Images
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.
PHP Code:
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?
-
March 21st, 2009, 03:10 PM
#2
Re: Application Skinning -> Multiple Images
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|