CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    23

    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(hWnd700515);

                
    BITMAP bp
                
    PAINTSTRUCT ps;
                
    HDC dc BeginPaint(hWnd, &ps);
                
    HDC skin CreateCompatibleDC(dc);
                
    GetObject(hSkinBitmapsizeof(bp), &bp);
                
    SelectObject(skinhSkinBitmap);
                
    BitBlt(dc00700515skin00SRCCOPY);
                
    DeleteDC(skin);

                
    BITMAP bp2;
                
    HDC dc2 BeginPaint(hWnd, &ps);
                
    HDC close CreateCompatibleDC(dc2);
                
    GetObject(hBtnClosesizeof(bp2), &bp2); 
                
    SelectObject(closehBtnClose);
                
    BitBlt(dc20,022,22,close,0SRCCOPY);
                
    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?

  2. #2
    Join Date
    Aug 2008
    Posts
    23

    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
  •  





Click Here to Expand Forum to Full Width

Featured