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

对话框与窗口

开发平台:

Visual C++

  1. /****************************************************************************
  2.  * *  
  3.  * GuiToolKit   *
  4.  *  (MFC extension) *  
  5.  * Created by Francisco Campos G. www.beyondata.com fcampos@beyondata.com *
  6.  *--------------------------------------------------------------------------*    
  7.  * *
  8.  * This program is free software;so you are free to use it any of your *
  9.  * applications (Freeware, Shareware, Commercial),but leave this header *
  10.  * intact. *
  11.  * *
  12.  * These files are provided "as is" without warranty of any kind. *
  13.  * *
  14.  *        GuiToolKit is forever FREE CODE !!!!! *
  15.  * *
  16.  *--------------------------------------------------------------------------*
  17.  * Created by: Francisco Campos G. *
  18.  * Bug Fixes and improvements : (Add your name) *
  19.  * -Francisco Campos *
  20.  * *
  21.  ****************************************************************************/
  22. #include "stdafx.h"
  23. #include "guiviewworktab.h"
  24. #ifdef _DEBUG
  25. #undef THIS_FILE
  26. static char THIS_FILE[]=__FILE__;
  27. #define new DEBUG_NEW
  28. #endif
  29. // CGuiViewWorkTab
  30. IMPLEMENT_DYNCREATE(CGuiViewWorkTab, CView)
  31. CGuiViewWorkTab::CGuiViewWorkTab()
  32. {
  33. }
  34. CGuiViewWorkTab::~CGuiViewWorkTab()
  35. {
  36. }
  37. BEGIN_MESSAGE_MAP(CGuiViewWorkTab, CView)
  38. ON_WM_CREATE()
  39. ON_WM_SIZE()
  40. END_MESSAGE_MAP()
  41. // CGuiViewWorkTab drawing
  42. void CGuiViewWorkTab::OnDraw(CDC* pDC)
  43. {
  44. CDocument* pDoc = GetDocument();
  45. // TODO: add draw code here
  46. }
  47. // CGuiViewWorkTab diagnostics
  48. /*
  49. #ifdef _DEBUG
  50. void CGuiViewWorkTab::AssertValid() const
  51. {
  52. CView::AssertValid();
  53. }
  54. void CGuiViewWorkTab::Dump(CDumpContext& dc) const
  55. {
  56. CView::Dump(dc);
  57. }
  58. #endif //_DEBUG
  59. */
  60. // CGuiViewWorkTab message handlers
  61. int CGuiViewWorkTab::OnCreate(LPCREATESTRUCT lpCreateStruct)
  62. {
  63. if (CView::OnCreate(lpCreateStruct) == -1)
  64. return -1;
  65. if (!m_guiWorktab.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,0,0),this,0x9999))
  66. return -1;
  67. // TODO:  Add your specialized creation code here
  68. return 0;
  69. }
  70. void CGuiViewWorkTab::OnSize(UINT nType, int cx, int cy) 
  71. {
  72. CView::OnSize(nType, cx, cy);
  73. m_guiWorktab.MoveWindow(0,0,cx,cy);
  74. }