Print Page | Close Window

WS_CLIPCHILDREN | WS_CLIPSIBLINGS style

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3687
Printed Date: 08 July 2024 at 4:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: WS_CLIPCHILDREN | WS_CLIPSIBLINGS style
Posted By: Tanya
Subject: WS_CLIPCHILDREN | WS_CLIPSIBLINGS style
Date 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




Replies:
Posted By: Tanya
Date Posted: 22 February 2006 at 7:39am

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



Posted By: Tanya
Date Posted: 22 February 2006 at 7:50am

Fixed...

I changed it to SetRedraw()

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net