SLiaDlg.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // SLiaDlg.cpp: implementation of the SLiaDlg class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "YLGL.h"
  6. #include "SLiaDlg.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. SLiaDlg::SLiaDlg()
  16. {
  17. }
  18. SLiaDlg::~SLiaDlg()
  19. {
  20. }
  21. void SLiaDlg::OnFSCommand(LPCTSTR command, LPCTSTR args)
  22. {
  23. }
  24. void SLiaDlg::Init()
  25. {
  26. ((MyBmpButton2*)m_picarray.ElementAt (0))->m_bAutoFocusImg=1;
  27. }
  28. void SLiaDlg::Destory()
  29. {
  30. }
  31. void SLiaDlg::BtnClick(WPARAM wParam, LPARAM lParam)
  32. {
  33. int id=lParam;
  34. id-=99;
  35. switch(id)
  36. {
  37. case 1:
  38. break;
  39. case 2:
  40. break;
  41. }
  42. }
  43. BOOL SLiaDlg::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. return 1;
  54. }
  55. }
  56. return CDialog::PreTranslateMessage(pMsg);
  57. }