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 » Maximized View on Extended Desktop (Bug?) Collapse All
Subject Author Date
Martin Baumgaertner Oct 30, 2007 - 9:39 AM

Dear ProfUIS-Team,

while using two monitors in extended desktop mode I got the following buggy behaviour with all sample apps:

1. dragging a wnd to monitor 2
2. pressing its maximize button

Result: wnd increases its size to that of mon2, but switches to pos(0,0) on mon1.

Best regards,

Martin

Technical Support Nov 3, 2007 - 12:12 PM

We failed to reproduce this issue in 2.81 and the source code of the <code>CExtNcFrameImpl::NcFrameImpl_SetWindowPlacement()</cod> method already contains the lines marked in your message with the // added comment.

Martin Baumgaertner Oct 31, 2007 - 7:02 AM

We have fixed the problem using the following workaround:

File: ExtNcFrame.cpp
line: 501 (added)
function: bool CExtNcFrameImpl::NcFrameImpl_SetWindowPlacement( const WINDOWPLACEMENT & _wp )

...		
pWndFrameImpl->SendMessage( WM_GETMINMAXINFO, 0, LPARAM(&_mmi) );

		_mmi.ptMaxPosition.x = _mp.m_rcWorkArea.left; // added
		_mmi.ptMaxPosition.y = _mp.m_rcWorkArea.top; // added

		CRect rcMove(
			_mmi.ptMaxPosition.x,
			_mmi.ptMaxPosition.y,
			_mmi.ptMaxPosition.x + _mmi.ptMaxSize.x,
			_mmi.ptMaxPosition.y + _mmi.ptMaxSize.y
			);
...
The bug appeared in v2.80 (and might be already fixed in v2.81?).

Martin