GuiTabbedPP.cpp
上传用户:wlkj888
上传日期:2022-08-01
资源大小:806k
文件大小:1k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. #include "stdafx.h"
  2. #include "guitabbedpp.h"
  3. #include "resource.h"
  4. CGuiTabbedPP::CGuiTabbedPP(void)
  5. {
  6. }
  7. CGuiTabbedPP::~CGuiTabbedPP(void)
  8. {
  9. }
  10. BEGIN_MESSAGE_MAP(CGuiTabbedPP, CGuiOfficeBar)
  11. ON_WM_CREATE()
  12. END_MESSAGE_MAP()
  13. int CGuiTabbedPP::OnCreate(LPCREATESTRUCT lpCreateStruct)
  14. {
  15. if (CGuiOfficeBar::OnCreate(lpCreateStruct) == -1)
  16. return -1;
  17. if (!m_tbpp.Create(WS_VISIBLE|WS_CHILD,CRect(0,0,0,0),this,0x3333))
  18. return -1;
  19. m_ArrButtons[0].SetEnabled(FALSE);
  20. m_ArrButtons[1].SetEnabled(FALSE);
  21. m_tree1.Create(TVS_HASLINES |TVS_LINESATROOT | TVS_HASBUTTONS,CRect(0,0,0,0),&m_tbpp,0x3331 );
  22. m_tree2.Create(TVS_HASLINES |TVS_LINESATROOT | TVS_HASBUTTONS,CRect(0,0,0,0),&m_tbpp,0x3331 );
  23. m_tree3.Create(TVS_HASLINES |TVS_LINESATROOT | TVS_HASBUTTONS,CRect(0,0,0,0),&m_tbpp,0x3331 );
  24. m_tbpp.SetImageList(IDB_BITPP,16,3,RGB(255,0,0));
  25. m_tbpp.Addtab(&m_tree1,"  Galeria  ",0);
  26. m_tbpp.Addtab(&m_tree2,"  Lista  ",1);
  27. //m_tbpp.Addtab(&m_tree3,"  Lista  ",-1);
  28. m_tbpp.SetColorTabs(GuiDrawLayer::GetRGBColorWhite());
  29. m_tbpp.SetAutoAjust(FALSE);
  30. // TODO:  Add your specialized creation code here
  31. return 0;
  32. }