Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1013 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999
  5. //
  6. // File: resizer.h
  7. //
  8. // Contents: Dialog resizer class
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef RESIZER_H
  12. #define RESIZER_H
  13. struct CResizeInfo
  14. {
  15. UINT _id;
  16. int _Flags;
  17. RECT _Rect;
  18. };
  19. class CResizer
  20. {
  21. public:
  22. enum sizeflags
  23. {
  24. sf_Width = 0x01,
  25. sf_Height = 0x02,
  26. sf_Left = 0x04,
  27. sf_Top = 0x08,
  28. sf_HalfLeftWidth = 0x10,
  29. sf_HalfTopHeight = 0x20,
  30. sf_HalfWidth = 0x40,
  31. sf_HalfHeight = 0x80
  32. };
  33. CResizer();
  34. ~CResizer();
  35. void Init(HWND win, CResizeInfo *pResizeInfo);
  36. void NewSize() const;
  37. private:
  38. HWND _hWnd;
  39. RECT _winRect;
  40. CResizeInfo *_pResizeInfo;
  41. void InitCtrl(CResizeInfo *p);
  42. };
  43. #endif