123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- // lyfzSMSAppDlg.h : 头文件
- //
- #pragma once
- #define USE_TRAYICON 1 // 使用托盘图标;
- #if USE_TRAYICON
- #include "ItrayIcon.h"
- #endif
- #include "SMSHandle.h"
- // ClyfzSMSAppDlg 对话框
- class ClyfzSMSAppDlg : public CDialog
- {
- // 构造
- public:
- ClyfzSMSAppDlg(CWnd* pParent = NULL); // 标准构造函数
- // 对话框数据
- enum { IDD = IDD_LYFZSMSAPP_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- int DelPhoneNum(const int nIdx);
- int AutoChangeLine(char* buf); //多行显示
- //清除缓存里的联系人
- void ClearLinkMan();
- void SavePassWord(const int nIsSave, const CString& strAccount, const CString& strPWD);
- void AddElementAtList(CArray<CStringArray, CStringArray>& arr);
- #if USE_TRAYICON
- void InitTrayIcon();
- // 托盘是否显示;
- BOOL m_isNotify;
- // 启动程序时,隐藏或显示对话框,在消息处理程序OnNcPaint()中使用;
- BOOL m_bShowNc;
- // 是否响应托盘消息;
- BOOL m_bNoticeTray;
- // 托盘工作类;
- ITrayIcon m_trayIcon;
- afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
- afx_msg LRESULT OnTaskBarCreated(WPARAM wp, LPARAM lp);
- void TaskNotifyIcon(); // 托盘的工作内容;
- void TrayRight();
- #endif
- BOOL m_bAutoRuning;
- // 实现
- protected:
- HICON m_hIcon;
- // 生成的消息映射函数
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg void OnDestroy();
- afx_msg void OnExit();
- afx_msg void OnClose();
- afx_msg HCURSOR OnQueryDragIcon();
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnAutorun();
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- afx_msg void OnBnClickedAdduserBtn(); //添加用户手机号
- afx_msg void OnBnClickedDeluserBtn(); //删除
- afx_msg void OnBnClickedExcelimportBtn(); //excel表导入
- afx_msg void OnBnClickedPhoneimportBtn(); //手机导入
- afx_msg void OnBnClickedSendmessageBtn(); //发送短信
- afx_msg void OnBnClickedMessagelogBtn(); //短信记录
- afx_msg void OnBnClickedSavepwdCheck(); //记住密码
- afx_msg void OnNMClickUserinfolist(NMHDR *pNMHDR, LRESULT *pResult);
- private:
- UINT m_nCountNum; //号码数量
- CEdit m_NumEditCtrl; //号码显示框
- CListCtrl m_PhoneBook; //电话本
- CString m_strPhoneNums; //显示框号码
- CString m_strAccount; //登录帐户
- CString m_strPassWord; //密码
- CString m_strContent; //内容
- CSMSHandle m_SMSHandle; //短信处理
- // int m_nIsSavePwd; //是否记住密码
- std::vector<SLinkManInfo*> m_vLinkManInfo; //联系人信息
- CString m_strTextCount; //短信条数
- };
|