Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtTabPageContainer flickering with Prof-UIS 2.61 Collapse All
Subject Author Date
Michael Valentine Nov 1, 2006 - 9:21 AM

Since upgrading to version 2.61, we have noticed that when you resize a dialog containing a CExtTabPageContainer, then the contents of the dialog within the container flicker. It appears to be drawing over the controls with a white box. This can be easily demonstrated in the ProfUIS_Controls sample program. Select the "Tab Containers" tab and then resize the main dialog. The flickering is especially noticeable if you select the "Dialog" tab within this dialog. The problem seems to be related to having "Clip Children" and "Clip Siblings" set on the dialog. If you remove these then it no longer flickers white, but you still get the normal flickering problem.

Technical Support Nov 1, 2006 - 10:52 AM

We have already fixed this bug. Please use this version of the CExtTabPageContainerWnd::DoPaint() method:

void CExtTabPageContainerWnd::DoPaint( CDC * pDC )
{
 ASSERT_VALID( this );
 ASSERT_VALID( pDC );
CRect rcClient;
 GetClientRect( &rcClient );
CExtPaintManager::stat_ExcludeChildAreas(
  pDC->GetSafeHdc(),
  GetSafeHwnd()
  );
 if(  (! PmBridge_GetPM()->GetCb2DbTransparentMode(this) )
  || (! PmBridge_GetPM()->PaintDockerBkgnd( true, *pDC, this ) )
  )
  pDC->FillSolidRect(
   &rcClient,
   PmBridge_GetPM()->GetColor(
    CExtPaintManager::CLR_3DFACE_OUT, this
    )
   );
}