Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
windows api Posted by Control_Zed on 5 Dec 2000 at 7:38 AM
i am writing a small sliding block puzzle. I have one main window and 12 smaller windows <br>
contained in the larger window.the 12th window is hidden so that the other windows can slide about.<br>
I want to put a bmp onto the 11 visible windows and have them jumble up..<br>
can any one help<br>
<br>
i would really appreiciate it<br>
thanks<br>



Edit Report
Re: windows api Posted by Sephiroth2 on 17 Dec 2000 at 4:02 PM
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.<br>
When processing the WM_PAINT message for the window, use the BitBlt function to paint the DC in the display DC used for painting.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.