![]() |
(11.2)Bug in "Codejock Command Bar Dialog Sample" |
Post Reply ![]() |
Author | |
tNgLoo ![]() Groupie ![]() Joined: 21 April 2005 Status: Offline Points: 31 |
![]() ![]() ![]() ![]() ![]() Posted: 17 September 2007 at 8:08am |
Open this "Codejock Command Bar Dialog Sample", modify the dialog(IDD_DIALOGSAMPLE_DIALOG) resource, set "Minimize Box" property to "True", and compile and run.
When this dialog restored after minimized, the size of it (right side) changed!????
|
|
![]() |
|
tNgLoo ![]() Groupie ![]() Joined: 21 April 2005 Status: Offline Points: 31 |
![]() ![]() ![]() ![]() ![]() |
this bug is Based from CXTResizeDialog. Any dialog whose base class is CXTResizeDialog has same problem
|
|
![]() |
|
tNgLoo ![]() Groupie ![]() Joined: 21 April 2005 Status: Offline Points: 31 |
![]() ![]() ![]() ![]() ![]() |
// my solution, verified.
void CXTResize::GetMinMaxInfo(MINMAXINFO* pMMI)
{ CXTPClientRect rcClient(m_pWnd); CXTPWindowRect rcWindow(m_pWnd); // Add 1 line
if(rcClient.IsRectEmpty()) return;
CSize szBorder(rcWindow.Width() - rcClient.Width(), rcWindow.Height() - rcClient.Height()); if (m_szWindow != CSize(0, 0)) |
|
![]() |
|
terrym ![]() Senior Member ![]() Joined: 13 April 2007 Status: Offline Points: 836 |
![]() ![]() ![]() ![]() ![]() |
Was this solution agreed by XTP that is what they are adding ? please
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Yes, its good solution. Thanks
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |