ChildFrm.cpp
上传用户:rxhxxy
上传日期:2007-01-02
资源大小:72k
文件大小:2k
源码类别:

TreeView控件

开发平台:

Visual C++

  1. // ChildFrm.cpp : implementation of the CChildFrame class
  2. //
  3. #include "stdafx.h"
  4. #include "TreeMenuDemo.h"
  5. #include "ChildFrm.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CChildFrame
  13. IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWnd)
  14. BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWnd)
  15. //{{AFX_MSG_MAP(CChildFrame)
  16. // NOTE - the ClassWizard will add and remove mapping macros here.
  17. //    DO NOT EDIT what you see in these blocks of generated code !
  18. //}}AFX_MSG_MAP
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CChildFrame construction/destruction
  22. CChildFrame::CChildFrame()
  23. {
  24. // TODO: add member initialization code here
  25. }
  26. CChildFrame::~CChildFrame()
  27. {
  28. }
  29. BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
  30. {
  31. // TODO: Modify the Window class or styles here by modifying
  32. //  the CREATESTRUCT cs
  33. return CMDIChildWnd::PreCreateWindow(cs);
  34. }
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CChildFrame diagnostics
  37. #ifdef _DEBUG
  38. void CChildFrame::AssertValid() const
  39. {
  40. CMDIChildWnd::AssertValid();
  41. }
  42. void CChildFrame::Dump(CDumpContext& dc) const
  43. {
  44. CMDIChildWnd::Dump(dc);
  45. }
  46. #endif //_DEBUG
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CChildFrame message handlers
  49. void CChildFrame::ActivateFrame(int nCmdShow) 
  50. {
  51. // start the show maximized
  52. if (nCmdShow == -1)
  53. nCmdShow = SW_SHOWMAXIMIZED;
  54. CMDIChildWnd::ActivateFrame(nCmdShow);
  55. }