Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: videocapturewnd.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of videocapturewnd.cpp
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "videocapturewnd.h"
  16. #include "..\Chicago\VideoBase.h"
  17. #include "..\..\LgLib\Version.h"
  18. #ifdef _DEBUG
  19. #define new DEBUG_NEW
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23. CVideoCaptureWnd::CVideoCaptureWnd()
  24. {
  25. m_pVideoBase = NULL;
  26. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CVideoCaptureWnd::CVideoCaptureWnd") );
  27. }
  28. CVideoCaptureWnd::~CVideoCaptureWnd()
  29. {
  30. LGLOG( LOG_LEVEL_MEDIUM, LOG_TYPE_INFO, this, _T("CVideoCaptureWnd::~CVideoCaptureWnd") );
  31. }
  32. BEGIN_MESSAGE_MAP(CVideoCaptureWnd, CWnd)
  33. //{{AFX_MSG_MAP(CVideoCaptureWnd)
  34. ON_WM_LBUTTONDOWN()
  35. //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37. void CVideoCaptureWnd::OnLButtonDown( UINT nFlags, CPoint point )
  38. {
  39. ASSERT( GetVideoBase() );
  40. GetVideoBase()->SetControlledVideo( this );
  41. }