📄 phonepcdlg.h
字号:
// PhonePCDlg.h : header file
//
#if !defined(AFX_PHONEPCDLG_H__1A77FF95_E742_46DC_87B6_A2F0058B00D4__INCLUDED_)
#define AFX_PHONEPCDLG_H__1A77FF95_E742_46DC_87B6_A2F0058B00D4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyList.h"
/////////////////////////////////////////////////////////////////////////////
// CPhonePCDlg dialog
#define INT_INIT_LISTBOX_ITEMNUM 20
enum Con_status
{
CONTROL_CREATED =0,
CONTROL_HIDE,
CONTROL_SHOW,
CONTROL_NO
};
class CPhonePCDlg : public CDialog
{
// Construction
public:
BOOL m_bCanSend;
CString m_strReceived;
LONG OnCommunication(WPARAM ch, LPARAM port);
void OnSendPhone(WPARAM wp, LPARAM lp);
void SendToPhone(void);
void Parse_data(char *sRead, int *ret_val);
void CreatLocalNumber(void);
void HideLocalNumber(void);
void ShowLocalNumber(void);
void HideShowSysinfo(void);
void ShowSysinfo(void);
void CreatPinSiminfo(void);
void HidePinSiminfo(void);
void ShowPinSiminfo(void);
void CreatLockPhone(void);
void HideLockPhone(void);
void ShowLockPhone(void);
void CreatEnableDial(void);
void HideEnableDial(void);
void ShowEnableDial(void);
void CreatDisableDial(void);
void HideDisableDial(void);
void ShowDisableDial(void);
CPhonePCDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPhonePCDlg)
enum { IDD = IDD_PHONEPC_DIALOG };
CEdit m_LCDCon;
CEdit m_NetPhoneNumber;
CComboBox m_ComboDelay;
CStatic m_str;
CTreeCtrl m_TreeCtrl;
int m_LongDistance;
//}}AFX_DATA
CStatic m_Groupbox;
CEdit m_MyEdit;
CStatic m_Diatime;
CStatic m_Length;
CStatic m_Way;
CStatic m_Strid00;
CStatic m_Strid01;
CStatic m_Strid02;
CStatic m_Strid03;
CStatic m_PinSetting;
CStatic m_AutoLockPin;
CStatic m_InitPin;
CStatic m_RandomPin;
CStatic m_RandomPinLen;
CStatic m_FixPin;
CStatic m_SimSetting;
CStatic m_PhoneLockSim;
CStatic m_LockSimNum;
CStatic m_LockSimNumLen;
CStatic m_LockOperator;
CStatic m_AutoLockOperator;
CStatic m_OperatorLocked;
CStatic m_LockCell;
CStatic m_boolLockCell;
CStatic m_LockCellNum;
CStatic m_AutoLockCell;
CStatic m_AutoLockCellNum;
CStatic m_EnableDirectDial;
CStatic m_DisableDirectDial;
CEdit m_InitPinEdit;
CEdit m_FixPinEdit;
CEdit m_LockSimNumEdit;
CButton m_RadioButtonAutoPin1;
CButton m_RadioButtonAutoPin2;
CStatic *m_pGroupRadio;
CButton m_RandomButton1;
CButton m_RandomButton2;
CStatic *m_pGroupRandomRadio;
CButton m_PhoneSimButton1;
CButton m_PhoneSimButton2;
CStatic *m_pGroupPhoneSimRadio;
CButton m_RadioLockOperator1;
CButton m_RadioLockOperator2;
CStatic *m_pGroupLockOpertor;
CButton m_RadioLockCell1;
CButton m_RadioLockCell2;
CStatic *m_pGroupLockCell;
CButton m_RadioAutoLockCell1;
CButton m_RadioAutoLockCell2;
CStatic *m_pGroupAutoLockCell;
CComboBox m_ComboPinLen;
CComboBox m_ComboWay;
CComboBox m_ComboOperator;
CComboBox m_ComboOperatorNum;
CListCtrl m_ListCtrl;
CMyList m_list;
CMyList m_EnableList;
CMyList m_DisableList;
CListCtrl listctrl;
CListBox m_ctrListBox;
CDialog dlg;
BOOL m_nRadioValue;
// int m_nAutoPin;
int m_nSysinfo;
int m_nLocal;
int m_nPinSim;
int m_nLockPhone;
int m_nEnableDial;
int m_nDisableDial;
char strCurrentPath[300];
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPhonePCDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
HANDLE hThread;
DWORD ThreadID;
CWinThread* m_Thread;
// static UINT CommThread(LPVOID pParam);
// Generated message map functions
//{{AFX_MSG(CPhonePCDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClickTreectr(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnCbnSelChange();
afx_msg void OnWritePhone();
afx_msg void OnAddzero();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnBtImport();
//}}AFX_MSG
afx_msg void OnOperSelChange();
afx_msg void OnAutoLock();
afx_msg void OnUseRandom();
afx_msg void OnLockSim();
afx_msg void OnChangeEdit();
afx_msg void OnLockCell();
afx_msg void OnLockProvider();
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PHONEPCDLG_H__1A77FF95_E742_46DC_87B6_A2F0058B00D4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -