d214.bmp.txt
来自「Visual C++通信编程工程实例精解(附盘)」· 文本 代码 · 共 41 行
TXT
41 行
m_sDiaINumber = _T("");
//} } AFX_DATA_INIT
// Note that Loadlcon does not require a subsequent Destroylcon in Win32
m_hlcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_ATModem=new CYsATModem;
m_stateDlg=new CStateDlg;
BOOL CNewATDlg::OnlnitDialog()
{
CDialog::OnInitDialog();
// Add "About..." menu item to system menu
//IDM_ABOUTBOX must be in the system command range.
ASSERT《IDM_ABOUTBOX & OxFFFO) ==IDM_ABOUTBOX);
ASSERT(IDM ABOUTBOX < OxFOOO);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_AB OUTBOX);
if ( !strAboutMenu.lsEmpty(》
{
pSysMenu->AppendMenu(MF_S EPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
Setlcon(m_hlcon, TRUE);
Setlcon(m_hlcon, FALSE);
// Set big icon
// Set small icon
// TODO: Add extra initialization here
m_stateDlg->Create(IDD_DIALOGl);
m_stateDlg->ShowWindow(SW_SHOW):
ghut=TRUE;
stateThread=AfxB eginThread(GetStateThre ad,(PVOID)this);
return TRUE; //retum TRUE unless you set the focus to a control
(5)瀑加消息映射函数内容
1)初始化按钮响应函数。
2/4
void CNewATDlg::OnButtonlnitalize0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?