PageTabWindow.h
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:4k
源码类别:

界面编程

开发平台:

Visual C++

  1. #if !defined(AFX_PAGETABWINDOW_H__6360D695_F300_4D8C_AE56_2ED554879B7C__INCLUDED_)
  2. #define AFX_PAGETABWINDOW_H__6360D695_F300_4D8C_AE56_2ED554879B7C__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // PageTabWindow.h : header file
  7. //
  8. #if (!defined __EXT_MFC_NO_TAB_CTRL)
  9. #include "PageBase.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPageTabWindow dialog
  12. class CPageTabWindow : public CPageBase
  13. {
  14. // Construction
  15. public:
  16. CPageTabWindow(CWnd* pParent = NULL);   // standard constructor
  17. // Dialog Data
  18. //{{AFX_DATA(CPageTabWindow)
  19. enum { IDD = IDD_PAGE_TAB_WINDOW };
  20. CExtCheckBox m_CheckShowHome;
  21. CExtCheckBox m_CheckShowEnd;
  22. CExtGroupBox m_wndGroupBoxStyle;
  23. CExtRadioButton m_wndRadioStyleStandard;
  24. CExtRadioButton m_wndRadioStyleOneNote;
  25. CExtRadioButton m_wndRadioStyleWhidbey;
  26. CExtRadioButton m_wndRadioStyleFlat;
  27. CExtRadioButton m_wndRadioStyleButtons;
  28. CExtCheckBox m_CheckItemDragging;
  29. CExtCheckBox m_CheckEnableTabList;
  30. CExtCheckBox m_CheckShowTabList;
  31. CExtCheckBox m_CheckFocusOnHover;
  32. CExtCheckBox m_CheckFullRowWidth;
  33. CExtCheckBox m_CheckCenterText;
  34. CExtCheckBox m_CheckAutoHideScroll;
  35. CExtCheckBox m_CheckEnableHelp;
  36. CExtCheckBox m_CheckEnableClose;
  37. CExtCheckBox m_CheckShowHelp;
  38. CExtCheckBox m_CheckBoldSelection;
  39. CExtCheckBox m_CheckShowClose;
  40. CExtCheckBox m_CheckInvertFont;
  41. CExtCheckBox m_CheckEqualWidth;
  42. CExtCheckBox m_CheckShowBorders;
  43. CExtButton m_BtnAdd10;
  44. CExtButton m_BtnAdd1;
  45. CExtButton m_BtnClear;
  46. //}}AFX_DATA
  47. CExtTabWnd
  48. m_wndTabOuterTop,
  49. m_wndTabOuterBottom,
  50. m_wndTabOuterLeft,
  51. m_wndTabOuterRight,
  52. m_wndTabInnerTop,
  53. m_wndTabInnerBottom,
  54. m_wndTabInnerLeft,
  55. m_wndTabInnerRight;
  56. CExtTabOneNoteWnd
  57. m_wndTabOneNoteOuterTop,
  58. m_wndTabOneNoteOuterBottom,
  59. m_wndTabOneNoteOuterLeft,
  60. m_wndTabOneNoteOuterRight,
  61. m_wndTabOneNoteInnerTop,
  62. m_wndTabOneNoteInnerBottom,
  63. m_wndTabOneNoteInnerLeft,
  64. m_wndTabOneNoteInnerRight;
  65. CExtTabWhidbeyWnd
  66. m_wndTabWhidbeyOuterTop,
  67. m_wndTabWhidbeyOuterBottom,
  68. m_wndTabWhidbeyOuterLeft,
  69. m_wndTabWhidbeyOuterRight,
  70. m_wndTabWhidbeyInnerTop,
  71. m_wndTabWhidbeyInnerBottom,
  72. m_wndTabWhidbeyInnerLeft,
  73. m_wndTabWhidbeyInnerRight;
  74. CExtTabFlatWnd
  75. m_wndTabFlatOuterTop,
  76. m_wndTabFlatOuterBottom,
  77. m_wndTabFlatOuterLeft,
  78. m_wndTabFlatOuterRight,
  79. m_wndTabFlatInnerTop,
  80. m_wndTabFlatInnerBottom,
  81. m_wndTabFlatInnerLeft,
  82. m_wndTabFlatInnerRight;
  83. CExtTabButtonsWnd
  84. m_wndTabButtonsOuterTop,
  85. m_wndTabButtonsOuterBottom,
  86. m_wndTabButtonsOuterLeft,
  87. m_wndTabButtonsOuterRight,
  88. m_wndTabButtonsInnerTop,
  89. m_wndTabButtonsInnerBottom,
  90. m_wndTabButtonsInnerLeft,
  91. m_wndTabButtonsInnerRight;
  92. // Overrides
  93. // ClassWizard generated virtual function overrides
  94. //{{AFX_VIRTUAL(CPageTabWindow)
  95. public:
  96. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  97. protected:
  98. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  99. //}}AFX_VIRTUAL
  100. // Implementation
  101. protected:
  102. // Generated message map functions
  103. //{{AFX_MSG(CPageTabWindow)
  104. virtual BOOL OnInitDialog();
  105. afx_msg void OnButtonClearTabs();
  106. afx_msg void OnButtonAddTab1();
  107. afx_msg void OnButtonAddTab10();
  108. //}}AFX_MSG
  109. DECLARE_MESSAGE_MAP()
  110. struct demo_items_data_t
  111. {
  112. LPCTSTR m_sItemText;
  113. bool m_bGroupStart:1;
  114. };
  115. static demo_items_data_t g_ItemsData[];
  116. CImageList m_ImageList;
  117. int m_nDemoImageListSize;
  118. int m_nDemoImageListAddIndexInner;
  119. int m_nDemoImageListAddIndexOuter;
  120. void _DoAdd1( bool bUpdateTabWnd );
  121. };
  122. #endif // (!defined __EXT_MFC_NO_TAB_CTRL)
  123. //{{AFX_INSERT_LOCATION}}
  124. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  125. #endif // !defined(AFX_PAGETABWINDOW_H__6360D695_F300_4D8C_AE56_2ED554879B7C__INCLUDED_)