CHuiyuanAddWnd.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #pragma once
  2. #include "../pch/pch.h"
  3. #include "CMainWnd.h"
  4. #include "CModalWnd.h"
  5. class CHuiyuanAddWnd : public CModalWnd
  6. {
  7. public:
  8. LPCTSTR GetWindowClassName() const
  9. {
  10. return _T("UIMemoWndFrame");
  11. };
  12. UINT GetClassStyle() const
  13. {
  14. return UI_CLASSSTYLE_DIALOG;
  15. };
  16. void OnFinalMessage(HWND /*hWnd*/)
  17. {
  18. //WindowImplBase::OnFinalMessage(hWnd);
  19. m_pm.RemovePreMessageFilter(this);
  20. //delete this;
  21. };
  22. void Init();
  23. void Notify(TNotifyUI& msg);
  24. LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  25. LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  26. {
  27. if (::IsIconic(*this))
  28. {
  29. bHandled = FALSE;
  30. }
  31. return (wParam == 0) ? TRUE : FALSE;
  32. }
  33. LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  34. {
  35. return 0;
  36. }
  37. LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  38. {
  39. return 0;
  40. }
  41. LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  42. LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  43. LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  44. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
  45. void StartYanzheng();
  46. void ConfirmMember();
  47. //处理键盘捕捉结果
  48. void HandleTextCapture(std::string content)
  49. {
  50. }
  51. public:
  52. CPaintManagerUI m_pm;
  53. std::string m_phone;
  54. std::string m_password;
  55. std::string m_name;
  56. std::wstring m_errorInfo;
  57. std::mutex m_qingqiu_mutex;
  58. bool m_is_qingqiu = false;
  59. int m_inputType = 1; //当前输入框 1:手机号 2:密码 3:会员名字
  60. };