📄 d214.bmp.txt
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -