RTScrollEdit.cpp
上传用户:qhonly
上传日期:2013-06-10
资源大小:487k
文件大小:1k
源码类别:

界面编程

开发平台:

Visual C++

  1. // RTScrollEdit.cpp : 实现文件
  2. //
  3. #include "stdafx.h"
  4. #include "RTScrollEdit.h"
  5. // CRTScrollEdit
  6. IMPLEMENT_DYNAMIC(CRTScrollEdit, CRTEdit)
  7. CRTScrollEdit::CRTScrollEdit()
  8. {
  9. }
  10. CRTScrollEdit::~CRTScrollEdit()
  11. {
  12. }
  13. BEGIN_MESSAGE_MAP(CRTScrollEdit, CRTEdit)
  14. ON_WM_PAINT()
  15. ON_WM_ERASEBKGND()
  16. ON_WM_CREATE()
  17. END_MESSAGE_MAP()
  18. // CRTScrollEdit 消息处理程序
  19. void CRTScrollEdit::OnPaint()
  20. {
  21. CRTEdit::OnPaint();
  22. }
  23. BOOL CRTScrollEdit::OnEraseBkgnd(CDC* pDC)
  24. {
  25. return CRTEdit::OnEraseBkgnd(pDC);
  26. }
  27. void CRTScrollEdit::PreSubclassWindow()
  28. {
  29. m_Container.Create(this);
  30. CRTEdit::PreSubclassWindow();
  31. }
  32. int CRTScrollEdit::OnCreate(LPCREATESTRUCT lpCreateStruct)
  33. {
  34. if (CRTEdit::OnCreate(lpCreateStruct) == -1)
  35. return -1;
  36. m_Container.Create(this);
  37. return 0;
  38. }
  39. void CRTScrollEdit::SetScroll(void)
  40. {
  41. }