BitBlt()

This is a discussion on BitBlt() within the Windows Programming forums, part of the Platform Specific Boards category; Hello I am using double buffering specifically BitBlt(). Over my offscreen buffer I draw other windows (trackbar, input box, button) ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    162

    BitBlt()

    Hello

    I am using double buffering specifically BitBlt(). Over my offscreen buffer I draw other windows (trackbar, input box, button) I am quite surprised that this works because it never worked before in my previous appz.

    The problem is that when the window is redrawn completely (If i move my track bar or another windows moves over the first one) all the other windows disappear. They simply get overdrawn but dont redraw themselves on top. To redraw even those child windows I need to resize the original window

    What shall I do in this case when I use BitBlt()?

    Thank you for help

  2. #2
    sgh
    sgh is offline
    Registered User
    Join Date
    Apr 2008
    Posts
    58
    can you show me your screenshot?

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    162
    I have solved it now

    Just for record...

    http://www.funbox.wz.cz/data/graph.jpg

    I just shifted the BitBlt() drawing a bit so it does not cover the other windows. Now there is no flickering when resizing... And the other windows do not disappear under the offscreen drawing.

    Code:
    BitBlt(hDC, 170, 15, _pProg->GetMaxSize().x, _pProg->GetMaxSize().y, hOffScreenDC, 170, 15, SRCCOPY);
    The window on the left is static... Now I am trying to put some text over the static window. No success yet with it...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Which BitBlt Raster Op?
    By SMurf in forum Windows Programming
    Replies: 1
    Last Post: 03-01-2006, 12:52 PM
  2. another BitBlt question..
    By btq in forum Windows Programming
    Replies: 6
    Last Post: 10-11-2002, 04:28 PM
  3. bitblt
    By canine in forum Windows Programming
    Replies: 3
    Last Post: 07-10-2002, 12:17 AM
  4. BitBlt and vertical retrace
    By Magos in forum Windows Programming
    Replies: 1
    Last Post: 06-15-2002, 02:32 PM
  5. Problems with BitBlt
    By Isometric in forum Windows Programming
    Replies: 6
    Last Post: 02-05-2002, 08:20 PM

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