CRengongYouhuiWnd.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #pragma once
  2. #include "../pch/pch.h"
  3. #include "CMainWnd.h"
  4. #include "CModalWnd.h"
  5. class CRengongYouhuiWnd : 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. std::string getContent();
  24. void SetTitle(std::wstring title);
  25. void Notify(TNotifyUI& msg);
  26. LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  27. LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  28. {
  29. if (::IsIconic(*this))
  30. {
  31. bHandled = FALSE;
  32. }
  33. return (wParam == 0) ? TRUE : FALSE;
  34. }
  35. LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  36. {
  37. return 0;
  38. }
  39. LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  40. {
  41. return 0;
  42. }
  43. LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  44. LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  45. LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  46. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool& bHandled);
  47. void StartYanzheng();
  48. //´¦Àí¼üÅ̲¶×½½á¹û
  49. void HandleTextCapture(std::string content)
  50. {
  51. }
  52. public:
  53. CPaintManagerUI m_pm;
  54. std::string m_content;
  55. std::wstring m_errorInfo;
  56. };