home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / SAMPLES / CTRLTEST / SPIN.CP_ / SPIN.CP
Encoding:
Text File  |  1993-02-08  |  885 b   |  32 lines

  1. // spin.cpp: Spin control - C++ class wrapping "MicroScroll" control in a DLL
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and Microsoft
  9. // WinHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "ctrltest.h"
  15.  
  16. #include "spin.h"
  17.  
  18. IMPLEMENT_DYNAMIC(CSpinControl, CWnd)
  19.  
  20. BOOL CSpinControl::Create(DWORD dwStyle, const RECT& rect,
  21.         CWnd* pParentWnd, UINT nID)
  22. {
  23.     return CWnd::Create("MicroScroll", NULL, dwStyle, rect, pParentWnd, nID);
  24. }
  25.  
  26. WNDPROC* CSpinControl::GetSuperWndProcAddr()
  27. {
  28.     static WNDPROC pfnSuper;
  29.     return &pfnSuper;
  30. }
  31.  
  32.