/** * @file XTPResizeGroupBox.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(__XTPRESIZEGROUPBOX_H__) # define __XTPRESIZEGROUPBOX_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPResizeGroupBox is a CButton derived class that can be used to display * a flicker free group box while resizing. This class is intended to only * be used as a group box and only used on a CXTPResize window. You can * subclass or create this object the way you would any CButton. * Note: * Do not use the transparent flag with this control, and make sure you * call SetFlag(xtpResizeNoTransparentGroup); to disable the resize manager from * setting this for you. */ class _XTP_EXT_CLASS CXTPResizeGroupBox : public CXTPButton { /** @cond */ DECLARE_DYNAMIC(CXTPResizeGroupBox) /** @endcond */ public: /** * @brief * Constructs a CXTPResizeGroupBox object. */ CXTPResizeGroupBox(); /** * @brief * Destroys a CXTPResizeGroupBox object, handles cleanup and * deallocation. */ virtual ~CXTPResizeGroupBox(); protected: /** * @brief * Called during paint operations to exclude the control windows * that are grouped by this control. * @param pDC Pointer to a device context. * @param rcClient Client area of group box. */ virtual void Exclude(CDC* pDC, CRect& rcClient); protected: /** @cond */ DECLARE_MESSAGE_MAP() //{{AFX_VIRTUAL(CXTPResizeGroupBox) //}}AFX_VIRTUAL //{{AFX_MSG(CXTPResizeGroupBox) afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnPaint(); //}}AFX_MSG /** @endcond */ }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPRESIZEGROUPBOX_H__) /** @endcond */