Tree View Control flickering

This is a discussion on Tree View Control flickering within the Windows Programming forums, part of the Platform Specific Boards category; Hi I programming an application that needs to update a Tree View Control constantly ( it use a for statement ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    20

    Tree View Control flickering

    Hi

    I programming an application that needs to update a Tree View Control constantly ( it use a for statement to loop then it doing some computations and then put the child’s in the Tree View ). But this update it appears the common problem of window flickering . How can I solve it ? It is any way to use a virtual window ? I ask the second question because I have not found a way to create a Tree View in a virtual window , because the CreateWindow function that creates the Tree View it needs a window handler ( HWND ) and I cannot find the handler of virtual window.
    Is there any other way except virtual window ( for example threads )

    I use pure Win32 API ( not MFC ) in MS C++ 6.0

    Thanks

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,691
    You'll want to follow the same techniques discussed in this thread.

    You'll need to be familiar with subclassing.
    Subclassing Controls
    Safe Subclassing in Win32

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  2. Tree View control not appearing
    By Garfield in forum Windows Programming
    Replies: 1
    Last Post: 03-07-2004, 01:47 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM
  5. BST/Red and Black Tree
    By ghettoman in forum C++ Programming
    Replies: 0
    Last Post: 10-24-2001, 11:45 PM

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