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

对话框与窗口

开发平台:

Visual C++

  1. #include "StdAfx.h"
  2. #include "guihelp.h"
  3. #include "resource.h"
  4. CGuiHelp::CGuiHelp(void)
  5. {
  6. }
  7. CGuiHelp::~CGuiHelp(void)
  8. {
  9. }
  10. BEGIN_MESSAGE_MAP(CGuiHelp, CGuiControlBar)
  11. ON_WM_CREATE()
  12. END_MESSAGE_MAP()
  13. int CGuiHelp::OnCreate(LPCREATESTRUCT lpCreateStruct)
  14. {
  15. if (CGuiControlBar::OnCreate(lpCreateStruct) == -1)
  16. return -1;
  17. if (!m_TabSolExplorer.Create(WS_VISIBLE|WS_CHILD,CRect(0,0,0,0),this,0x9999))
  18. return -1;
  19. const DWORD dwStyle = WS_CHILD | WS_VISIBLE | TVS_HASLINES | TVS_LINESATROOT | TVS_HASBUTTONS ;
  20. if (!m_TreeContents.Create(dwStyle,CRect(0,0,0,0), &m_TabSolExplorer, 1))
  21. return -1;
  22. if (!m_Treeindex.Create(dwStyle, CRect(0,0,0,0), &m_TabSolExplorer, 2))
  23. return -1;
  24. if (!m_TreeSearch.Create(dwStyle, CRect(0,0,0,0), &m_TabSolExplorer, 2))
  25. return -1;
  26. m_TabSolExplorer.SetImageList(IDB_DBPROJECTS, 16,5, RGB (255, 0, 0));
  27. m_TabSolExplorer.Addtab(&m_TreeContents,"Contents",3);
  28. m_TabSolExplorer.Addtab(&m_Treeindex,"Index",4);
  29. m_TabSolExplorer.Addtab(&m_TreeSearch,"Search",5);
  30. SetIcon(IDB_BITMAPHELP,16,1,RGB(255,0,0));
  31. // TODO:  Add your specialized creation code here
  32. return 0;
  33. }