![]() |
the view is drawed twinkling |
Post Reply
|
| Author | |
freehawk
Groupie
Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Quote Reply
Topic: the view is drawed twinklingPosted: 10 March 2005 at 8:17pm |
|
Hello There are tabbed MDI client windows which can be changed to Max, Min or normal size. After maximized one window, and then switched among client windows by clicked the title tabs, the view is drawed twinkling and not smooth. Please help me how to resolve it? Thanks. Freehawk |
|
![]() |
|
proe
Newbie
Joined: 17 June 2005 Location: China Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 July 2005 at 3:38am |
|
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) if( !CMDIChildWnd::PreCreateWindow(cs) ) return TRUE; |
|
![]() |
|
pascal
Groupie
Joined: 07 February 2005 Location: Germany Status: Offline Points: 25 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 July 2005 at 2:47pm |
|
Hello, the best way to avoid fleeking is to inherit from CXTPTabClientWnd and to catch the WM_MDIACTIVATE message. You should then lock the redraw before calling the base class and unlock it after execution. See code below. best regards from Göttingen, germany BEGIN_MESSAGE_MAP(CMainTabClientWnd, CXTPTabClientWnd)ON_WM_MDIACTIVATE() { SetRedraw(FALSE); CWnd::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd); SetRedraw(TRUE); RedrawWindow( NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_ALLCHILDREN); |
|
|
Pascal Verdier
Software Engineer Manager |
|
![]() |
|
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 |