I have a window and its client area is filled with a bitmap patterned brush. It also contains several transparent static controls which I am using as frames for bitmap images.
I can paint the client area with the brush and paint the images into the static controls with no problem, however, when the WM_PAINT message is sent to my window it only manages to repaint the client area and not the bitmaps inside my static controls
My code looks like this:
--------------------------------------------
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hwnd, &ps);
PaintTableMat(hdc, hwnd);
EndPaint(hwnd, &ps);
ShowDeal();
}
break;
--------------------------------------------
PaintTableMat() and ShowDeal() are the functions to paint the background and the framed images; they both work fine outside of the WM_PAINT context but ShowDeal() (the function to paint the images into the static controls) doesnt work here and it leaves the screen with grey rectangles where the images should be!
Hmf
I'm guessing that the static controls need to process their own WM_PAINT messages(?!) but I really don't have a clue, I would be very grateful if anyone could help!
thanks for listening
dom