00001 // ResizableMsgSupport.h: some declarations to support custom resizable wnds 00002 // 00004 // 00005 // Copyright (C) 2000-2002 by Paolo Messina 00006 // (http://www.geocities.com/ppescher - [email protected]) 00007 // 00008 // The contents of this file are subject to the Artistic License (the "License"). 00009 // You may not use this file except in compliance with the License. 00010 // You may obtain a copy of the License at: 00011 // http://www.opensource.org/licenses/artistic-license.html 00012 // 00013 // If you find this code useful, credits would be nice! 00014 // 00016 00017 #if !defined(AFX_RESIZABLEMSGSUPPORT_H__INCLUDED_) 00018 #define AFX_RESIZABLEMSGSUPPORT_H__INCLUDED_ 00019 00020 #if _MSC_VER > 1000 00021 #pragma once 00022 #endif // _MSC_VER > 1000 00023 00024 typedef struct tagRESIZEPROPERTIES 00025 { 00026 // wether to ask for resizing properties every time 00027 BOOL bAskClipping; 00028 BOOL bAskRefresh; 00029 // otherwise, use the cached properties 00030 BOOL bCachedLikesClipping; 00031 BOOL bCachedNeedsRefresh; 00032 00033 // initialize with valid data 00034 tagRESIZEPROPERTIES() : bAskClipping(TRUE), bAskRefresh(TRUE) {} 00035 00036 } RESIZEPROPERTIES, *PRESIZEPROPERTIES, *LPRESIZEPROPERTIES; 00037 00038 00039 typedef struct tagCLIPPINGPROPERTY 00040 { 00041 BOOL bLikesClipping; 00042 00043 // initialize with valid data 00044 tagCLIPPINGPROPERTY() : bLikesClipping(FALSE) {} 00045 00046 } CLIPPINGPROPERTY, *PCLIPPINGPROPERTY, *LPCLIPPINGPROPERTY; 00047 00048 00049 typedef struct tagREFRESHPROPERTY 00050 { 00051 BOOL bNeedsRefresh; 00052 RECT rcOld; 00053 RECT rcNew; 00054 00055 // initialize with valid data 00056 tagREFRESHPROPERTY() : bNeedsRefresh(TRUE) {} 00057 00058 } REFRESHPROPERTY, *PREFRESHPROPERTY, *LPREFRESHPROPERTY; 00059 00060 00061 #endif // !defined(AFX_RESIZABLEMSGSUPPORT_H__INCLUDED_)