home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c031 / 11.ddi / MFC / SAMPLES / CTRLTEST / SPIN.CP$ / spin
Encoding:
Text File  |  1992-03-13  |  823 b   |  28 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. // QuickHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "ctrltest.h"
  14. #include "spin.h"
  15.  
  16. BOOL CSpinControl::Create(DWORD dwStyle, const RECT& rect,
  17.         CWnd* pParentWnd, UINT nID)
  18. {
  19.     return CWnd::Create("MicroScroll", NULL, dwStyle, rect, pParentWnd, nID);
  20. }
  21.  
  22. WNDPROC* CSpinControl::GetSuperWndProcAddr()
  23. {
  24.     static WNDPROC pfnSuper;
  25.     return &pfnSuper;
  26. }
  27.  
  28.