offscreens

This is a discussion on offscreens within the Windows Programming forums, part of the Platform Specific Boards category; umm three questions: 1. Is this in the right section? 2. Is offscreens even possible on windows? 3. If the ...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    6

    Question offscreens

    umm three questions:

    1. Is this in the right section?

    2. Is offscreens even possible on windows?

    3. If the answer to question two is yes, can some1 plz post a good tut on them plz?


    i used to code on mac using the compiler code warrior but now i've switched over to windows and
    dev c++ but i dont know how to use offscreens on it.


    ty.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Offscreens? You mean double buffering?

    To double buffer you need to construct a memory DC with the same bit depth as your current DC. You perform all operations such as writing text and drawing lines on the memory DC. At the end of your paint function you would then blit the memory DC to the actual window DC or client DC. You also must tell Windows to turn off it's default double buffering or your window will do very odd things when blitting.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21