CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Location
    Moscow, Russia.
    Posts
    2,176

    How to avoid blinkibg on update of controls (text/images)?

    I have a number of different controls on DialogBars mostly: static text, static bitmaps, list controls. When I update there contents (SetWindowText, SetBitmap and others common ways) I see a blink at them while the are updating (clearing to background and then redrawing- all steps are visible). The most uncomfortable effect orrurs when I draw animation at static bitmap control...

    Is there any way to avoid the problem? Will maybe owner draw features help? Or the proper message to change there contents on? Or the only way is to implement there copy by hand?
    "Programs must be written for people to read, and only incidentally for machines to execute."

  2. #2
    Join Date
    Jun 2002
    Location
    Moscow, Russia.
    Posts
    2,176
    any ideas?
    "Programs must be written for people to read, and only incidentally for machines to execute."

  3. #3
    Join Date
    Oct 2002
    Location
    Italy
    Posts
    324
    Well,
    making them all owner draw controls can help; you could improve the repainting by updating only what really needs to be, and by not clearing the background when it's not needed.
    Many tricks like displaying text with ExtTextOut can complete the work...

    Now it's up to you decide if it's worth the work needed...
    Last edited by puzzolino; August 15th, 2004 at 02:48 PM.
    Regards,
    Marco Era
    www.marcoera.com

    Latest post on my blog: Back to the Amiga's times

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