Курсовая работа: Проект текстового редактора
if (state & MF_CHECKED)
{
//Beep(100,100);
/*Beep(200,100);Beep(300,100);Beep(400,100);Beep(500,100);Beep(600,100);
Beep(700,100);Beep(800,100);Beep(900,100);Beep(1000,100);Beep(1100,100);
Beep(1200,100);Beep(1300,100);Beep(1400,100);Beep(1500,100);Beep(1600,100);
Beep(1700,100);Beep(1800,100);Beep(1900,100);Beep(2000,100);Beep(2100,100);
Beep(2500,500);Beep(1900,100);Beep(1800,100);Beep(1700,100);Beep(1600,100);
Beep(1500,100);Beep(1400,100);Beep(1300,100);Beep(1200,100);Beep(1100,100);
Beep(1000,100);Beep(900,100);Beep(800,100);Beep(700,100);Beep(600,100);
Beep(500,100);Beep(400,100);Beep(300,100);Beep(200,100);Beep(100,500);*/
pMenu->CheckMenuItem(0, MF_UNCHECKED | MF_BYPOSITION);
m_wndStatusBar.ShowWindow(SW_HIDE);
GetClientRect(rcEditSize);
rcEditSize.InflateRect(-2, -2);
pEdit->MoveWindow(rcEditSize);
m_bFlMenu = FALSE;
}
else
{
pMenu->CheckMenuItem(0, MF_CHECKED | MF_BYPOSITION);
m_wndStatusBar.ShowWindow(SW_SHOW);
GetClientRect(rcEditSize);
rcEditSize.InflateRect(-2, -2, -2, -20);
pEdit->MoveWindow(rcEditSize);
m_bFlMenu = TRUE;
}
}
void CMenuDlg::OnTimer(UINT nIDEvent)//Онтаймер-------------------