Курсовая работа: Проект текстового редактора
m_hAccel = ::LoadAccelerators(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_ACCELERATOR1));
//----------------------------------------------------
// Инициализируемшрифттекста
CFont *pFontText = m_Edit1.GetFont();
LOGFONT lfText;
pFontText->GetLogFont(&lfText);
m_fontText.CreateFontIndirect(&lfText);
//m_editMain.m_menuPopup.LoadMenu(IDR_MENU_POPUP);
//----------------------------------------------------
//StatusBar
m_wndStatusBar.Create(WS_CHILD | WS_VISIBLE | CCS_BOTTOM | SBARS_SIZEGRIP,
CRect(0, 0, 0, 0), this, IDC_STATUS_BAR);
CRect rect;
m_wndStatusBar.GetClientRect(&rect);
int nParts[] = {rect.right - 200, - 1};
CString strPartsStatusBar;
strPartsStatusBar.Format(_T("Стр %d, стлб %d"), m_nStrStatusBar = 1, m_nStolbetsStatusBar= 1);
m_wndStatusBar.SetParts(sizeof(nParts)/sizeof(nParts[0]), nParts);
m_wndStatusBar.SetText(strPartsStatusBar, 1, 0);
m_nTimer = SetTimer(1, 100, NULL);
m_wndStatusBar.ShowWindow(SW_SHOW);
//-------------------------------------------------------
//tray
m_menuTray.LoadMenu(IDR_MENU2);
m_nidTray.cbSize = sizeof(NOTIFYICONDATA);
m_nidTray.hWnd = m_hWnd;
m_nidTray.uID = ID_TRAYICON;
m_nidTray.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
m_nidTray.hIcon = AfxGetApp()->LoadIcon(IDI_ICON1);