|
-
Aug 1st, 2002, 08:42 PM
#1
Thread Starter
Lively Member
Device Contexts v Picture Boxes
Hi. I am new to the Windows API and have heard that using excessive amounts of Picture boxes means a great overhead that will kill (slow down) a graphical application.
I know you can use device contexts (DCs) instead of picture boxes when "blitting" (i assume that word means painting or drawing) images to the screen.
When I try this approach I create a DC using the CreateCompatibleDC function. I then use LoadImage to load an image and associate that image with a handler.
I then use SelectObject to associate the DC and the handler I made using LoadImage.
No errors but nothing happens. Obviously I am not actually drawing the image to the screen. I attempt to use BitBlt to do this but no luck (although I can use bitblt fine when using picture boxes). Could any1 please help me in this matter?
Thanks for any help b4 hand.
Daniel
PS I tried to give some help to others in this thread but my knowledge is so limited that I decided against it, I didnt want to make you all laugh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|