Control redraw issue.

This is a discussion on Control redraw issue. within the Windows Programming forums, part of the Platform Specific Boards category; I have noticed that with controls such as trackbars and my owner-drawn buttons become grayed-out when the parent window is ...

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Posts
    5,439

    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:
    int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000
    <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan
    (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000
    )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 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, 05:23 AM
  4. Tab Control issue
    By tyouk in forum Windows Programming
    Replies: 3
    Last Post: 01-11-2005, 02:40 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

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