AdvComboEdit.cpp 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // AdvComboEdit.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "AdvComboEdit.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CAdvComboEdit
  12. BEGIN_MESSAGE_MAP(CAdvComboEdit, CEdit)
  13. //{{AFX_MSG_MAP(CAdvComboEdit)
  14. ON_WM_TIMER()
  15. //}}AFX_MSG_MAP
  16. END_MESSAGE_MAP()
  17. CAdvComboEdit::CAdvComboEdit()
  18. {
  19. XLISTCTRL_TRACE(_T("in CAdvComboEdit::CAdvComboEdit\n"));
  20. }
  21. CAdvComboEdit::~CAdvComboEdit()
  22. {
  23. XLISTCTRL_TRACE(_T("in CAdvComboEdit::~CAdvComboEdit\n"));
  24. }
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CAdvComboEdit message handlers
  27. void CAdvComboEdit::OnTimer(UINT nIDEvent)
  28. {
  29. KillTimer(nIDEvent);
  30. SetForegroundWindow();
  31. CEdit::OnTimer(nIDEvent);
  32. }
  33. void CAdvComboEdit::PreSubclassWindow()
  34. {
  35. XLISTCTRL_TRACE(_T("in CAdvComboEdit::PreSubclassWindow\n"));
  36. SetTimer(1, 100, NULL);
  37. CEdit::PreSubclassWindow();
  38. }