ResizableMsgSupport.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // ResizableMsgSupport.h: some declarations to support custom resizable wnds
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //
  5. // Copyright (C) 2000-2002 by Paolo Messina
  6. // (http://www.geocities.com/ppescher - ppescher@yahoo.com)
  7. //
  8. // The contents of this file are subject to the Artistic License (the "License").
  9. // You may not use this file except in compliance with the License.
  10. // You may obtain a copy of the License at:
  11. // http://www.opensource.org/licenses/artistic-license.html
  12. //
  13. // If you find this code useful, credits would be nice!
  14. //
  15. /////////////////////////////////////////////////////////////////////////////
  16. #if !defined(AFX_RESIZABLEMSGSUPPORT_H__INCLUDED_)
  17. #define AFX_RESIZABLEMSGSUPPORT_H__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. typedef struct tagRESIZEPROPERTIES
  22. {
  23. // wether to ask for resizing properties every time
  24. BOOL bAskClipping;
  25. BOOL bAskRefresh;
  26. // otherwise, use the cached properties
  27. BOOL bCachedLikesClipping;
  28. BOOL bCachedNeedsRefresh;
  29. // initialize with valid data
  30. tagRESIZEPROPERTIES() : bAskClipping(TRUE), bAskRefresh(TRUE) {}
  31. } RESIZEPROPERTIES, *PRESIZEPROPERTIES, *LPRESIZEPROPERTIES;
  32. typedef struct tagCLIPPINGPROPERTY
  33. {
  34. BOOL bLikesClipping;
  35. // initialize with valid data
  36. tagCLIPPINGPROPERTY() : bLikesClipping(FALSE) {}
  37. } CLIPPINGPROPERTY, *PCLIPPINGPROPERTY, *LPCLIPPINGPROPERTY;
  38. typedef struct tagREFRESHPROPERTY
  39. {
  40. BOOL bNeedsRefresh;
  41. RECT rcOld;
  42. RECT rcNew;
  43. // initialize with valid data
  44. tagREFRESHPROPERTY() : bNeedsRefresh(TRUE) {}
  45. } REFRESHPROPERTY, *PREFRESHPROPERTY, *LPREFRESHPROPERTY;
  46. #endif // !defined(AFX_RESIZABLEMSGSUPPORT_H__INCLUDED_)