Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - WS_CLIPCHILDREN | WS_CLIPSIBLINGS style
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WS_CLIPCHILDREN | WS_CLIPSIBLINGS style

 Post Reply Post Reply
Author
Message
Tanya View Drop Down
Newbie
Newbie


Joined: 09 February 2006
Location: Israel
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tanya Quote  Post ReplyReply Direct Link To This Post Topic: WS_CLIPCHILDREN | WS_CLIPSIBLINGS style
    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

Back to Top
Tanya View Drop Down
Newbie
Newbie


Joined: 09 February 2006
Location: Israel
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tanya Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Tanya View Drop Down
Newbie
Newbie


Joined: 09 February 2006
Location: Israel
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tanya Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2006 at 7:50am

Fixed...

I changed it to SetRedraw()

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.