windows api

i am writing a small sliding block puzzle. I have one main window and 12 smaller windows

contained in the larger window.the 12th window is hidden so that the other windows can slide about.

I want to put a bmp onto the 11 visible windows and have them jumble up..

can any one help

i would really appreiciate it



  • Why not just have one large window which paints all the pieces? Anyway, create 11 DCs with CreateCompatibleDC and load the 11 bitmaps. Or alternatively, create 1 DC and load one big bitmap. Use SelectObject to select one bitmap for every of the DCs that you have created.

    When processing the WM_PAINT message for the window, use the BitBlt function to paint the DC in the display DC used for painting.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!