CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Posts
    111

    flickering problrm

    Hi,

    I have 2 dialog base applications having same background image. On startup both these applications will be diaplayed in full screen resolution.

    I have another application to start both these components.
    . Start first componet
    . wait for 5 seconds
    . Start Second application.

    My problem is when the second application is displaying( whicjh has the same screen as first application ), it flickering.

    Please provide some solutions( if its in GDI+ it will be very helpful ).

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: flickering problrm

    What is flickering? You show both windows fullscreen, so the second window will be the one that is only visible.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Jan 2005
    Posts
    111

    Re: flickering problrm

    Hi Marc ,
    thats right...
    actually I need a smooth transtion from first window to second window. When the second screen starts to display a flickering occurs( even if the back grounds are same). I think now u got my problem.

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: flickering problrm

    How are you implementing this "smooth" transition?
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  5. #5
    Join Date
    Feb 2007
    Posts
    186

    Re: flickering problrm

    Well if your just drawing 2 windows then they are both being redrawn on screen or swapped they will flicker. The whole point of double buffering is to draw the image in memory first so when its drawn you cant see it. The computer cant draw and redraw an image instantly so you will see something no matter how fast it is unless you buffer in memory.
    Last edited by abcdefgqwerty; April 25th, 2007 at 03:55 PM.

  6. #6
    Join Date
    Feb 2007
    Posts
    186

    Re: flickering problrm

    I not completely sure what your talking about but why not just double buffer both windows? then neither one will flicker if thats what you want. You can swap them until your hearts content.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured