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 » Application became slow when upgraded to Prof-UIS3.01 from Prof-UIS2.87 Collapse All
Subject Author Date
maruyama a Sep 5, 2014 - 11:58 AM

Dear SupportTeam


Hi.

Application becomes slow overall where it was upgraded to Prof-UIS3.01 from Prof-UIS2.87
(This is in the release version)
For example, when a window becomes active , when a child window is created ... etc.

As a result of investigating the cause, it became quickly by replacing the source of the Prof-UIS3.01 from Prof-UIS2.87 the location of the following ExtPaintManager.cpp.


Prof-UIS3.01 ExtPaintManager.cpp(3283)

bool CExtPaintManager::NcFrame_IsSupported(
	const CWnd * pWnd,
	LPARAM lParam // = 0L
	) const
{
	ASSERT_VALID( this );
	lParam;
	if( pWnd->GetSafeHwnd() == NULL )
		return false;
//	if( g_PaintManager.m_DWM.IsCompositionEnabled() )
//		return false;
//	if( ! g_PaintManager.m_UxTheme.IsNonClientThemed() )
//		return false;
//	if( ! g_PaintManager.m_UxTheme.IsControlsThemed() )
//		return false;
//	if( ! g_PaintManager.m_UxTheme.IsAppThemed() )
//		return false;
 	return true;
}


Prof-UIS2.87 ExtPaintManager.cpp(3587)
bool CExtPaintManager::NcFrame_IsSupported(
	const CWnd * pWnd,
	LPARAM lParam // = 0L
	) const
{
	ASSERT_VALID( this );
	pWnd;
	lParam;
	return false;
}


Incidentally,I asked earlier
http://www.prof-uis.com/prof-uis/tech-support/support-forum/the-frame-and-icon-of-a-child-window-are-strange-70957.aspx
This will also be solved by modifying as described above


Question1
CExtPaintManager::NcFrame_IsSupported() function do they determine what support?

Question2
If we made a modification of the above, any problems happens elsewhere?

Question3
Please tell me solutions to problem other than the above.
(For example, how to set up a regular that do not support NCFrame)


--------------------------------------------------------------
Development and operating environment
Windows7 SP1 32bit (Japanese)
VisualStuido2013 Update2 (Japanese)
Prof-UISv3.01(mfc)
----------------------------------------------------------------


Thanks.

Art Wilkes Oct 25, 2014 - 9:09 AM

This change has been included in all new releases.
We are not sure why this code was changed.
Prof-UIS support.