TipsDlg2.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // TipsDlg2.cpp: implementation of the TipsDlg2 class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "LYFZIPManage.h"
  6. #include "TipsDlg2.h"
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char THIS_FILE[]=__FILE__;
  10. #define new DEBUG_NEW
  11. #endif
  12. //////////////////////////////////////////////////////////////////////
  13. // Construction/Destruction
  14. //////////////////////////////////////////////////////////////////////
  15. TipsDlg2::TipsDlg2()
  16. {
  17. }
  18. TipsDlg2::~TipsDlg2()
  19. {
  20. }
  21. void TipsDlg2::OnFSCommand(LPCTSTR command, LPCTSTR args)
  22. {
  23. }
  24. void TipsDlg2::Init()
  25. {
  26. }
  27. void TipsDlg2::Destory()
  28. {
  29. }
  30. void TipsDlg2::BtnClick(WPARAM wParam, LPARAM lParam)
  31. {
  32. int id=lParam;
  33. id-=99;
  34. switch(id)
  35. {
  36. case 1:
  37. CDialog::OnCancel ();
  38. break;
  39. case 2:
  40. break;
  41. }
  42. }
  43. BOOL TipsDlg2::PreTransMsg(MSG* pMsg)
  44. {
  45. if(pMsg->message==WM_KEYDOWN)
  46. {
  47. switch (pMsg->wParam)
  48. {
  49. case VK_ESCAPE:
  50. case VK_F3:
  51. case VK_MULTIPLY:
  52. case VK_OEM_2:
  53. CDialog::OnCancel ();
  54. return 1;
  55. }
  56. }
  57. return CDialog::PreTranslateMessage(pMsg);
  58. }