/** * @file XTPResizeFormView.h * * @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 * */ /** @cond */ #if !defined(__XTPRESIZEFORMVIEW_H__) # define __XTPRESIZEFORMVIEW_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPResizeFormView is a multiple inheritance class derived from CFormView * and CXTPResize. CXTPResizeFormView is used to create a resizable CFormView * type object that allows its form items to be resized or moved dynamically. */ class _XTP_EXT_CLASS CXTPResizeFormView : public CFormView , public CXTPResize { /** @cond */ DECLARE_DYNCREATE(CXTPResizeFormView) /** @endcond */ public: /** * @brief * Constructs a CXTPResizeFormView object. * @param nID Contains the ID number of a dialog template resource. * @param nFlags Flags that are to be passed to CXTPResize that specify the attributes * of the resizing property page. They can be one or more of the values * in the Remarks section: * @details * Styles to be added or removed can be combined by using the bitwise * OR (|) operator. It can be one or more of the following:

* xtpResizeNoSizeIcon: Do not add size icon. * xtpResizeNoHorizontal: No horizontal resizing. * xtpResizeNoVertical: No vertical resizing. * xtpResizeNoMinsize: Do not require a minimum size. * xtpResizeNoClipChildren: Do not set clip children style. * xtpResizeNoTransparentGroup: Do not set transparent style * for group boxes. */ CXTPResizeFormView(const UINT nID = 0, const UINT nFlags = 0); protected: /** * @brief * This method called in the Size method to adjust a window rectangle to * fit real client size. * @param rcWindow Window rectangle to change. */ virtual void AdjustResizeRect(CSize& rcWindow); protected: /** @cond */ DECLARE_MESSAGE_MAP() //{{AFX_VIRTUAL(CXTPResizeFormView) virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); virtual BOOL OnInitDialog(); //}}AFX_VIRTUAL //{{AFX_MSG(CXTPResizeFormView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI); afx_msg void OnDestroy(); //}}AFX_MSG /** @endcond */ }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPRESIZEFORMVIEW_H__) /** @endcond */