home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / MFC / SRC / PENCTRL.CP_ / PENCTRL.CP
Encoding:
Text File  |  1993-02-08  |  2.1 KB  |  92 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library. 
  2. // Copyright (C) 1992 Microsoft Corporation 
  3. // All rights reserved. 
  4. //  
  5. // This source code is only intended as a supplement to the 
  6. // Microsoft Foundation Classes Reference and Microsoft 
  7. // QuickHelp and/or WinHelp documentation provided with the library. 
  8. // See these sources for detailed information regarding the 
  9. // Microsoft Foundation Classes product. 
  10.  
  11.  
  12. #include "stdafx.h"
  13. #include "afxpen.h"
  14.  
  15. #ifdef _AFXDLL
  16. // For the MFCDLL build, APP==AFX
  17. #undef AFXAPP_DATA
  18. #define AFXAPP_DATA     AFXAPI_DATA
  19. #endif
  20.  
  21. #ifdef AFX_AUX_SEG
  22. #pragma code_seg(AFX_AUX_SEG)
  23. #endif
  24.  
  25. #ifdef _DEBUG
  26. #undef THIS_FILE
  27. static char BASED_CODE THIS_FILE[] = __FILE__;
  28. #define new DEBUG_NEW
  29. #endif
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CHEdit
  33.  
  34. IMPLEMENT_DYNAMIC(CHEdit, CEdit)
  35.  
  36. WNDPROC* CHEdit::GetSuperWndProcAddr()
  37. {
  38.     static WNDPROC NEAR pfnSuper;
  39.     return &pfnSuper;
  40. }
  41.  
  42. BOOL CHEdit::Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID)
  43. {
  44.     return CWnd::Create("HEDIT", NULL, dwStyle, rect, pParentWnd, nID);
  45. }
  46.  
  47. CHEdit::~CHEdit()
  48. {
  49.     DestroyWindow();
  50. }
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CBEdit
  54.  
  55. IMPLEMENT_DYNAMIC(CBEdit, CHEdit)
  56.  
  57. WNDPROC* CBEdit::GetSuperWndProcAddr()
  58. {
  59.     static WNDPROC NEAR pfnSuper;
  60.     return &pfnSuper;
  61. }
  62.  
  63. BOOL CBEdit::Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID)
  64. {
  65.     return CWnd::Create("BEDIT", NULL, dwStyle, rect, pParentWnd, nID);
  66. }
  67.  
  68. CBEdit::~CBEdit()
  69. {
  70.     DestroyWindow();
  71. }
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74. // Inline function declarations expanded out-of-line
  75.  
  76. #ifndef _AFX_ENABLE_INLINES
  77.  
  78. #ifdef AFX_DBG2_SEG
  79. #pragma code_seg(AFX_DBG2_SEG)
  80. #endif
  81.  
  82. static char BASED_CODE _szAfxPenInl[] = "afxpen.inl";
  83. #undef THIS_FILE
  84. #define THIS_FILE _szAfxPenInl
  85. #define _AFXPEN_INLINE
  86. #include "afxpen.inl"
  87.  
  88. #endif //!_AFX_ENABLE_INLINES
  89.  
  90.  
  91. /////////////////////////////////////////////////////////////////////////////
  92.