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 General Discussion » Prof-UIS 2.81 and VS 2008 Collapse All
Subject Author Date
Sergio Buonanno Nov 26, 2007 - 2:11 AM

I have rebuilt my application with VS 2008 (release version) and Prof-UIS 2.81. It seems ok except for the MDI Tab control that has simply disappeared. Any idea on has why that happened ? (the same applicatiion built with Prof-UIS 2.81 and VS 2005 is ok, MDI tab control included).

Technical Support Nov 27, 2007 - 8:27 AM

We found out what’s wrong. The problem is that the way in which the CWnd::RepositionBars methods process windows with identifier IDC_STATIC (which is equal to -1) is different in VS 2008. So, as a workaround, you can manually specify some other identifier when creating mdi tabs:

UINT nID = 123;
if( !m_wndMdiTabs.Create( this, CRect(0,0,0,0), nID ) )
{
	ASSERT( FALSE );
	return -1;
}