GuiPowerp.cpp
Upload User: wlkj888
Upload Date: 2022-08-01
Package Size: 806k
Code Size: 1k
Category:

Dialog_Window

Development Platform:

Visual C++

  1. // GuiPowerp.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "CGuiPowerPoint.h"
  5. #include "GuiPowerp.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. #define ID_CLOSE  WM_USER+1
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CGuiPowerp
  14. IMPLEMENT_DYNCREATE(CGuiPowerp, CGuiPowerPointView)
  15. CGuiPowerp::CGuiPowerp()
  16. {
  17. }
  18. CGuiPowerp::~CGuiPowerp()
  19. {
  20. }
  21. BEGIN_MESSAGE_MAP(CGuiPowerp, CGuiPowerPointView)
  22. //{{AFX_MSG_MAP(CGuiPowerp)
  23. ON_WM_CREATE()
  24. ON_COMMAND(ID_CLOSE, OnClose)
  25. //}}AFX_MSG_MAP
  26. END_MESSAGE_MAP()
  27. void CGuiPowerp::OnClose()
  28. {
  29. AfxMessageBox("What to do?");
  30. }
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CGuiPowerp message handlers
  33. int CGuiPowerp::OnCreate(LPCREATESTRUCT lpCreateStruct) 
  34. {
  35. if (CGuiPowerPointView::OnCreate(lpCreateStruct) == -1)
  36. return -1;
  37. // TODO: Add your specialized creation code here
  38. m_tree1.Create(TVS_HASLINES |TVS_LINESATROOT | TVS_HASBUTTONS,CRect(0,0,0,0),&m_tbpp,0x3331 );
  39. m_tree2.Create(TVS_HASLINES |TVS_LINESATROOT | TVS_HASBUTTONS,CRect(0,0,0,0),&m_tbpp,0x3332 );
  40. m_tbpp.SetImageList(IDB_BITPP,16,3,RGB(255,0,0));
  41. m_tbpp.Addtab(&m_tree1,"  Esquemas  ",0);
  42. m_tbpp.Addtab(&m_tree2,"  Diapositivas  ",1);
  43. m_tbpp.SetIdButtonClose(ID_CLOSE);
  44. m_tbpp.ShowButtonClose(TRUE);
  45. return 0;
  46. }