Курсовая работа: Проект текстового редактора

_tcscpy(m_nidTray.szTip, _T("БлокнотЛехиКаменева"));

//--------------------------------------------------------

CMenu* MENU = GetMenu();

CMenu* sibmenu = MENU->GetSubMenu(1);

sibmenu->EnableMenuItem(ID_Otmenit, MF_BYCOMMAND | MF_GRAYED);

CMenu* MENU1 = GetMenu();

CMenu* submenu = MENU1->GetSubMenu(1);

submenu->EnableMenuItem(ID_Wirezat, MF_BYCOMMAND | MF_GRAYED);

CMenu* MENU2 = GetMenu();

CMenu* sebmenu = MENU2->GetSubMenu(1);

sebmenu->EnableMenuItem(ID_Kopirowat, MF_BYCOMMAND | MF_GRAYED);

CMenu* MENU3 = GetMenu();

CMenu* sobmenu = MENU3->GetSubMenu(1);

sobmenu->EnableMenuItem(ID_Udalit, MF_BYCOMMAND | MF_GRAYED);

//----------------------------------------------------------------

m_pAddDlg = NULL;

return TRUE; // return TRUE unless you set the focus to a control

}

// If you add a minimize button to your dialog, you will need the code below

// to draw the icon. For MFC applications using the document/view model,

// this is automatically done for you by the framework.

void CMenuDlg::OnPaint()

{

if (IsIconic())

{

CPaintDC dc(this); // device context for painting

SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0);

// Center icon in client rectangle

int cxIcon = GetSystemMetrics(SM_CXICON);

К-во Просмотров: 975
Бесплатно скачать Курсовая работа: Проект текстового редактора