Thread: Control redraw issue.

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    Control redraw issue.

    I have noticed that with controls such as trackbars and my owner-drawn buttons become grayed-out when the parent window is moved, and won't show unless clicked on. I have specified the WS_CLIPCHILDREN style for the parent and even tried adding the WS_CLIPSIBLING style for the controls but that didn't solve the problem. Any ideas what I need to do to fix this?
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Consider calling Invalidate() for each objects as the user moves a window.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 11:56 AM
  2. Issue with ListView Control
    By elaverick in forum C# Programming
    Replies: 8
    Last Post: 04-29-2008, 03:42 AM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. Tab Control issue
    By tyouk in forum Windows Programming
    Replies: 3
    Last Post: 01-11-2005, 03:40 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM