The bitmap image(s) always paint over the top of the hash lines. When I
display a single image, you can see the hash lines paint and then the
image paints over the top of the hash lines. Invalidating/UpdateWindow
to either the hash lines or image doesn't fix it. The onPaint for the
parent gets called and painting of the hash lines gets called.
Regardless of the sequence of events, the image static control is always
on top.
It appears to be a z order, but when I check with Spy+, the static
bitmap windows are not on top, the parent is.
Creation of the parent window:
parentWnd.Create(NULL, WS_CHILD|WS_BORDER, rectTmp, ptrDialog,
IDW_PARENT);
Creation of the static bitmap:
staticBitmapWnd.Create(NULL, WS_CHILD|WS_VISIBLE|SS_BITMAP,
singleImgRect, this, NULL);
Any clues?
Maggie
You will always get children on top of a window - otherwise they would be
obscured, and it wouldn't be possible to see anything :(((
Perhaps you could try to create yet another window above all the other
children, with a transparent background, drawing the lines that should be on
top in that window?
Even if you succeeded drawing over the children, the next children-redraw
would erase your lines.
Johan Rosengren
Responsable Informatique
PACTA S.A.
"Maggie" <a...@foxvalley.net> wrote in message
news:39C778A2...@foxvalley.net...