Source code of Windows XP (NT5)
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.

46 lines
1.1 KiB

  1. //******************************************************************
  2. // layout.h
  3. //
  4. // This file contains the declarations for the code hat lays out the
  5. // CTrapEventDialog. This is neccessary when the edit/view button changes the
  6. // dialog form its small (main) view to the extended view.
  7. //
  8. // Author: Larry A. French
  9. //
  10. // History:
  11. // 20-Febuary-96 Wrote it
  12. //
  13. //
  14. // Copyright (C) 1996 Microsoft Corporation. All rights reserved.
  15. //******************************************************************
  16. #ifndef _layout_h
  17. #define _layout_h
  18. class CEventTrapDlg;
  19. class CMainLayout;
  20. class CExtendedLayout;
  21. class CLayout
  22. {
  23. public:
  24. CLayout();
  25. void Initialize(CEventTrapDlg* pdlg);
  26. void LayoutAndRedraw(BOOL bExtendedView, int cx, int cy);
  27. void ShowExtendedView(BOOL bShow);
  28. void LayoutView(BOOL bExtendedView);
  29. private:
  30. // Private member functions
  31. void ResizeMainLayout(CMainLayout& layoutMain);
  32. void ResizeExtendedLayout(CExtendedLayout& layoutExtended);
  33. // Private member data
  34. CEventTrapDlg* m_pdlg;
  35. CSize m_sizeMainViewInitial;
  36. CSize m_sizeExtendedViewInitial;
  37. int m_cyMainView;
  38. int m_cyExtendedView;
  39. };
  40. #endif //_layout_h