📄 senddlg.h
字号:
// SendDlg.h : header file
//
#define MYWM_NOTIFYICON WM_USER+100
#define MYTIP "timetosend is running"
#define MYTIPX "timetosend is closed"
#define MYICON 1000
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_SENDDLG_H__DA934680_9CC4_4269_93DC_489F6439F4AE__INCLUDED_)
#define AFX_SENDDLG_H__DA934680_9CC4_4269_93DC_489F6439F4AE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CSendDlg dialog
class CSendDlg : public CDialog
{
// Construction
public:
int flag;
BOOL SendInf(CString Phone,CString Content);
CString ContentEncode(CString content);
CString NumberEncode(CString phone);
char * ReadString();
CString EncodeTPDU(CString phone,CString content);
void SendString(CString m_strS);
CSendDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSendDlg)
enum { IDD = IDD_SEND_DIALOG };
CString m_strPhone;
CString m_strContent;
CMSComm m_Com;
CString m_strInf;
CTime m_CtlDate;
CTime m_CtlTime;
BOOL m_isSetTime;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSendDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
BOOL m_bCapture;
BOOL MyTaskBarDeleteIcon();
BOOL MyTaskBarAddIcon();
BOOL MyTaskBarChangeIcon();
NOTIFYICONDATA tnid;
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSendDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg LRESULT OnMyNotifyIcon(WPARAM wParam,LPARAM lParam);
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOnCommMscomm1();
afx_msg void OnButSend();
afx_msg void OnButClc();
afx_msg void OnButLiulan();
afx_msg void OnButReceive();
afx_msg void OnCheck1();
afx_msg void OnButTime();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnDestroy();
afx_msg void OnExit();
afx_msg void OnHelp();
afx_msg void OnAbout();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SENDDLG_H__DA934680_9CC4_4269_93DC_489F6439F4AE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -