WS_CLIPCHILDREN | WS_CLIPSIBLINGS style |
Post Reply |
Author | |
Tanya
Newbie Joined: 09 February 2006 Location: Israel Status: Offline Points: 13 |
Post Options
Thanks(0)
Posted: 22 February 2006 at 6:52am |
Hello, I still have a redraw problem with some of my views. I saw a lot of similar problems in the forum and tried to do as you said. But it doesn’t help for all the cases. I have a main frame with - BOOL some_frame_c::PreCreateWindow( CREATESTRUCT& cs ) { if( !CXTPFrameWnd::PreCreateWindow(cs) ) return FALSE; cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS; return TRUE; } And a lot of panes inside. And sometimes I can see a child control of few of them (when they tabbed with another and not selected) instead of the child control of selected pane. I added to each of them clip styles - some_list_c::some_list_c( CWnd *papa ) { ModifyStyle( 0, WS_CHILD|WS_CLIPSIBLINGS|WS_CLIPCHILDREN ); … } What is wrong? Thanks, Tanya |
|
Tanya
Newbie Joined: 09 February 2006 Location: Israel Status: Offline Points: 13 |
Post Options
Thanks(0)
|
OK…I think that the problem can be in function, where I building the tree or list controls. For better performance I used there ShowWindow(): void some_tree_c::reset() { CWaitCursor cw; ShowWindow( SW_HIDE ); . . . . . //load data and build a tree . . . . . ShowWindow( SW_SHOW ); Invalidate(); } Do you have any suggestions? Thanks, Tanya |
|
Tanya
Newbie Joined: 09 February 2006 Location: Israel Status: Offline Points: 13 |
Post Options
Thanks(0)
|
Fixed... I changed it to SetRedraw()
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |