lyfzSMSAppDlg.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // lyfzSMSAppDlg.h : 头文件
  2. //
  3. #pragma once
  4. #define USE_TRAYICON 1 // 使用托盘图标;
  5. #if USE_TRAYICON
  6. #include "ItrayIcon.h"
  7. #endif
  8. #include "SMSHandle.h"
  9. // ClyfzSMSAppDlg 对话框
  10. class ClyfzSMSAppDlg : public CDialog
  11. {
  12. // 构造
  13. public:
  14. ClyfzSMSAppDlg(CWnd* pParent = NULL); // 标准构造函数
  15. // 对话框数据
  16. enum { IDD = IDD_LYFZSMSAPP_DIALOG };
  17. protected:
  18. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  19. virtual BOOL PreTranslateMessage(MSG* pMsg);
  20. int DelPhoneNum(const int nIdx);
  21. int AutoChangeLine(char* buf); //多行显示
  22. //清除缓存里的联系人
  23. void ClearLinkMan();
  24. void SavePassWord(const int nIsSave, const CString& strAccount, const CString& strPWD);
  25. void AddElementAtList(CArray<CStringArray, CStringArray>& arr);
  26. #if USE_TRAYICON
  27. void InitTrayIcon();
  28. // 托盘是否显示;
  29. BOOL m_isNotify;
  30. // 启动程序时,隐藏或显示对话框,在消息处理程序OnNcPaint()中使用;
  31. BOOL m_bShowNc;
  32. // 是否响应托盘消息;
  33. BOOL m_bNoticeTray;
  34. // 托盘工作类;
  35. ITrayIcon m_trayIcon;
  36. afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
  37. afx_msg LRESULT OnTaskBarCreated(WPARAM wp, LPARAM lp);
  38. void TaskNotifyIcon(); // 托盘的工作内容;
  39. void TrayRight();
  40. #endif
  41. BOOL m_bAutoRuning;
  42. // 实现
  43. protected:
  44. HICON m_hIcon;
  45. // 生成的消息映射函数
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  48. afx_msg void OnPaint();
  49. afx_msg void OnDestroy();
  50. afx_msg void OnExit();
  51. afx_msg void OnClose();
  52. afx_msg HCURSOR OnQueryDragIcon();
  53. DECLARE_MESSAGE_MAP()
  54. public:
  55. afx_msg void OnAutorun();
  56. afx_msg void OnTimer(UINT_PTR nIDEvent);
  57. afx_msg void OnBnClickedAdduserBtn(); //添加用户手机号
  58. afx_msg void OnBnClickedDeluserBtn(); //删除
  59. afx_msg void OnBnClickedExcelimportBtn(); //excel表导入
  60. afx_msg void OnBnClickedPhoneimportBtn(); //手机导入
  61. afx_msg void OnBnClickedSendmessageBtn(); //发送短信
  62. afx_msg void OnBnClickedMessagelogBtn(); //短信记录
  63. afx_msg void OnBnClickedSavepwdCheck(); //记住密码
  64. afx_msg void OnNMClickUserinfolist(NMHDR *pNMHDR, LRESULT *pResult);
  65. private:
  66. UINT m_nCountNum; //号码数量
  67. CEdit m_NumEditCtrl; //号码显示框
  68. CListCtrl m_PhoneBook; //电话本
  69. CString m_strPhoneNums; //显示框号码
  70. CString m_strAccount; //登录帐户
  71. CString m_strPassWord; //密码
  72. CString m_strContent; //内容
  73. CSMSHandle m_SMSHandle; //短信处理
  74. // int m_nIsSavePwd; //是否记住密码
  75. std::vector<SLinkManInfo*> m_vLinkManInfo; //联系人信息
  76. CString m_strTextCount; //短信条数
  77. };