CImageAttentionWnd.h 1.5 KB

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