/** * @file XTPResizePropertyPage.cpp * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ #include "stdafx.h" #include "Controls/Resize/XTPResizeRect.h" #include "Controls/Resize/XTPResizePoint.h" #include "Controls/Resize/XTPResize.h" #include "Controls/Resize/XTPResizePropertyPage.h" #include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" #ifdef _DEBUG # undef THIS_FILE static char THIS_FILE[] = __FILE__; # define new DEBUG_NEW #endif #pragma warning(disable : 4355) // 'this' : used in base member initializer list ///////////////////////////////////////////////////////////////////////////// // CXTPResizePropertyPage IMPLEMENT_DYNCREATE(CXTPResizePropertyPage, CPropertyPage) #include "Common/Base/Diagnostic/XTPBeginAfxMap.h" BEGIN_MESSAGE_MAP(CXTPResizePropertyPage, CPropertyPage) //{{AFX_MSG_MAP(CXTPResizePropertyPage) ON_WM_SIZE() ON_WM_GETMINMAXINFO() ON_WM_DESTROY() //}}AFX_MSG_MAP END_MESSAGE_MAP() #include "Common/Base/Diagnostic/XTPEndAfxMap.h" ///////////////////////////////////////////////////////////////////////////// // CXTPResizePropertyPage construction/destruction CXTPResizePropertyPage::CXTPResizePropertyPage(const UINT nTemplate, const UINT nCaption, const UINT nFlags) : CPropertyPage(nTemplate, nCaption) , CXTPResize(this, nFlags | xtpResizeNoSizeIcon) { m_nDialogID = nTemplate; } BOOL CXTPResizePropertyPage::OnInitDialog() { CPropertyPage::OnInitDialog(); CXTPResize::Init(); return TRUE; } void CXTPResizePropertyPage::OnGetMinMaxInfo(MINMAXINFO* pMMI) { CXTPResize::GetMinMaxInfo(pMMI); } void CXTPResizePropertyPage::OnSize(UINT nType, int cx, int cy) { CPropertyPage::OnSize(nType, cx, cy); CXTPResize::Size(); } void CXTPResizePropertyPage::OnDestroy() { // Save window placement if AutoLoadPlacement was used. if (!m_strSection.IsEmpty()) { SavePlacement(m_strSection); } CPropertyPage::OnDestroy(); }