#include <fsODMenu.h>
Public Member Functions | |
| void | Attach (CMenu *pMenu, BOOL bMainMenu) |
| void | Detach () |
| void | OnDrawItem (LPDRAWITEMSTRUCT pdis) |
| void | OnMeasureItem (LPMEASUREITEMSTRUCT pmis) |
| void | SetImageList (CImageList *pList, CImageList *pDisList) |
| int | InsertMenu (CMenu *pMenu, int iWhere, CMenu *pMenuWhere=NULL) |
| void | RemoveMenu (int iWhere, int iCount, CMenu *pMenuWhere=NULL) |
| void | InsertMenuItem (CMenu *pMenu, LPCSTR pszItem, UINT nID, UINT uWhere, BOOL bByPos) |
| fsODMenuItemData * | AddItem (CMenu *pMenu, UINT nID, LPCSTR pszItem) |
| void | RemoveMenuItem (CMenu *pMenu, UINT nID, BOOL bByPos) |
| void | SetMenuItemsText (CMenu *pMenu, fsSetText *pTexts, UINT nSize, BOOL bByPos) |
| void | SetMenuItemText (CMenu *pMenu, LPCSTR pszText, UINT nID, BOOL bByPos=FALSE) |
| void | SetImages (fsSetImage *pImages, int cImages, CMenu *pMenu=NULL, BOOL fByPos=FALSE) |
| fsODMenu () | |
| virtual | ~fsODMenu () |
Protected Member Functions | |
| void | AttachMenu (CMenu *pMenu, BOOL bMenuBar=FALSE) |
| fsODMenuItemData * | AttachMenuItem (CMenu *pMenu, UINT iPos, BOOL bByPos=TRUE) |
| void | DetachMenu (CMenu *pMenu) |
| void | DetachMenuItem (CMenu *pMenu, UINT iPos, BOOL bByPos=TRUE) |
| void | DrawCheckMark (CDC *dc, RECT &rc, BOOL bSelected, BOOL bGrayed) |
| HMENU | CopyMenu (HMENU hMenu) |
Protected Attributes | |
| CImageList * | m_pImages |
| CImageList * | m_pDisImages |
| CFont | m_font |
| UINT | m_cyIcon |
| UINT | m_cxIcon |
| CFont | m_fontBold |
| HMENU | m_hMenu |
Definition at line 37 of file fsODMenu.h.
| fsODMenu::fsODMenu | ( | ) |
Definition at line 18 of file fsODMenu.cpp.
References m_cxIcon, m_cyIcon, m_font, m_fontBold, m_hMenu, m_pImages, and NULL.
| fsODMenu::~fsODMenu | ( | ) | [virtual] |
| void fsODMenu::Attach | ( | CMenu * | pMenu, | |
| BOOL | bMainMenu | |||
| ) |
Definition at line 46 of file fsODMenu.cpp.
References AttachMenu(), Detach(), and m_hMenu.
Referenced by CMainFrame::ApplyLanguageToMenu(), CMainFrame::OnCreate(), CWnd_FDMGetCustVer_Btn::OnRButtonUp(), CWndLog::OnRClick(), CSpiderTasks::OnRClick(), CSitesWnd::OnRClick(), CSheduler_Tasks::OnRClick(), CHFE_FileList::OnRClick(), CFVDownloads_Tasks::OnRClick(), CDownloads_Tasks::OnRClick(), CDownloads_Log::OnRClick(), CDownloads_History::OnRClick(), CDownloads_Deleted::OnRClick(), CDownloads_Groups::ShowDeletedContextMenu(), CDownloads_Groups::ShowGrpContextMenu(), CDownloads_Groups::ShowHistoryContextMenu(), and CMainFrame::ShowTrayMenu().
| void fsODMenu::Detach | ( | ) |
Definition at line 104 of file fsODMenu.cpp.
References DetachMenu(), m_hMenu, and NULL.
Referenced by CMainFrame::ApplyLanguageToMenu(), Attach(), CMainFrame::OnClose(), CWnd_FDMGetCustVer_Btn::OnRButtonUp(), CWndLog::OnRClick(), CSpiderTasks::OnRClick(), CSitesWnd::OnRClick(), CSheduler_Tasks::OnRClick(), CHFE_FileList::OnRClick(), CFVDownloads_Tasks::OnRClick(), CDownloads_Tasks::OnRClick(), CDownloads_Log::OnRClick(), CDownloads_History::OnRClick(), CDownloads_Deleted::OnRClick(), CDownloads_Groups::ShowDeletedContextMenu(), CDownloads_Groups::ShowGrpContextMenu(), CDownloads_Groups::ShowHistoryContextMenu(), CMainFrame::ShowTrayMenu(), and ~fsODMenu().
| void fsODMenu::OnDrawItem | ( | LPDRAWITEMSTRUCT | pdis | ) |
Definition at line 200 of file fsODMenu.cpp.
References fsODMenuItemData::bBold, fsODMenuItemData::bMenuBar, DrawCheckMark(), fsDrawFrame(), fsDrawPressedFrame(), fsFillSolidRect(), fsODMenuItemData::iCheckImage, fsODMenuItemData::iImage, m_cxIcon, m_cyIcon, m_font, m_fontBold, m_pDisImages, m_pImages, NULL, ODMENU_CHECKIMAGE_CHECK, ODMENU_CHECKIMAGE_RADIO, and fsODMenuItemData::strMenuText.
Referenced by CWndLog::OnDrawItem(), CWnd_FDMGetCustVer_Btn::OnDrawItem(), CSpiderTasks::OnDrawItem(), CSitesWnd::OnDrawItem(), CSheduler_Tasks::OnDrawItem(), CMainFrame::OnDrawItem(), CHFE_FileList::OnDrawItem(), CFVDownloads_Tasks::OnDrawItem(), CDownloads_Tasks::OnDrawItem(), CDownloads_Log::OnDrawItem(), CDownloads_History::OnDrawItem(), CDownloads_Groups::OnDrawItem(), and CDownloads_Deleted::OnDrawItem().
| void fsODMenu::OnMeasureItem | ( | LPMEASUREITEMSTRUCT | pmis | ) |
Definition at line 154 of file fsODMenu.cpp.
References fsODMenuItemData::bBold, fsODMenuItemData::bMenuBar, FALSE, if(), m_cxIcon, m_cyIcon, m_font, m_fontBold, NULL, and fsODMenuItemData::strMenuText.
Referenced by CWndLog::OnMeasureItem(), CWnd_FDMGetCustVer_Btn::OnMeasureItem(), CSpiderTasks::OnMeasureItem(), CSitesWnd::OnMeasureItem(), CSheduler_Tasks::OnMeasureItem(), CMainFrame::OnMeasureItem(), CHFE_FileList::OnMeasureItem(), CFVDownloads_Tasks::OnMeasureItem(), CDownloads_Tasks::OnMeasureItem(), CDownloads_Log::OnMeasureItem(), CDownloads_History::OnMeasureItem(), CDownloads_Groups::OnMeasureItem(), and CDownloads_Deleted::OnMeasureItem().
| void fsODMenu::SetImageList | ( | CImageList * | pList, | |
| CImageList * | pDisList | |||
| ) |
Definition at line 381 of file fsODMenu.cpp.
References m_pDisImages, and m_pImages.
Referenced by CDownloads_Groups::Create(), CMainFrame::LoadMenuImages(), CSpiderTasks::OnRClick(), CSitesWnd::OnRClick(), CSheduler_Tasks::OnRClick(), CHFE_FileList::OnRClick(), CFVDownloads_Tasks::OnRClick(), and CDownloads_Tasks::OnRClick().
| int fsODMenu::InsertMenu | ( | CMenu * | pMenu, | |
| int | iWhere, | |||
| CMenu * | pMenuWhere = NULL | |||
| ) |
Definition at line 387 of file fsODMenu.cpp.
References AttachMenu(), AttachMenuItem(), fsODMenuItemData::bMenuBar, BOOL, CopyMenu(), FALSE, m_hMenu, NULL, and TRUE.
Referenced by CMainFrame::AddPluginMenu(), and CMainFrame::AddPluginMenuView().
| void fsODMenu::RemoveMenu | ( | int | iWhere, | |
| int | iCount, | |||
| CMenu * | pMenuWhere = NULL | |||
| ) |
Definition at line 414 of file fsODMenu.cpp.
References DetachMenu(), DetachMenuItem(), m_hMenu, and NULL.
Referenced by CMainFrame::RemovePluginMenu(), and CMainFrame::RemovePluginMenuView2().
Definition at line 491 of file fsODMenu.cpp.
References AttachMenuItem(), and FALSE.
Referenced by CMainFrame::AddPluginMenuView(), CMainFrame::BuildLngMenu(), and CMainFrame::BuildSkinsMenu().
| fsODMenuItemData * fsODMenu::AddItem | ( | CMenu * | pMenu, | |
| UINT | nID, | |||
| LPCSTR | pszItem | |||
| ) |
Definition at line 479 of file fsODMenu.cpp.
References AttachMenuItem(), and FALSE.
Referenced by CMainFrame::BuildSwitchToMenu().
| void fsODMenu::RemoveMenuItem | ( | CMenu * | pMenu, | |
| UINT | nID, | |||
| BOOL | bByPos | |||
| ) |
Definition at line 485 of file fsODMenu.cpp.
References DetachMenuItem().
Referenced by CMainFrame::BuildLngMenu(), CMainFrame::BuildSwitchToMenu(), and CMainFrame::RemovePluginMenuView().
Definition at line 516 of file fsODMenu.cpp.
References SetMenuItemText().
Referenced by CMainFrame::ApplyLanguageToMenu(), and CMainFrame::ShowTrayMenu().
Definition at line 497 of file fsODMenu.cpp.
References if(), simple_client::info, and NULL.
Referenced by CMainFrame::ApplyLanguageToMenu(), SetMenuItemsText(), and CMainFrame::ShowTrayMenu().
| void fsODMenu::SetImages | ( | fsSetImage * | pImages, | |
| int | cImages, | |||
| CMenu * | pMenu = NULL, |
|||
| BOOL | fByPos = FALSE | |||
| ) |
Definition at line 457 of file fsODMenu.cpp.
References ASSERT, wgMenuItemImage::iCheckImage, fsODMenuItemData::iCheckImage, wgMenuItemImage::iIdItem, wgMenuItemImage::iImage, fsODMenuItemData::iImage, simple_client::info, m_hMenu, and NULL.
Referenced by CMainFrame::AddPluginMenu(), CMainFrame::AddPluginMenuView(), CSpiderTasks::OnRClick(), CSitesWnd::OnRClick(), CSheduler_Tasks::OnRClick(), CHFE_FileList::OnRClick(), CFVDownloads_Tasks::OnRClick(), CDownloads_Tasks::OnRClick(), CMainFrame::SetMenuImages(), CDownloads_Groups::ShowDeletedContextMenu(), CDownloads_Groups::ShowGrpContextMenu(), CDownloads_Groups::ShowHistoryContextMenu(), and CMainFrame::ShowTrayMenu().
| void fsODMenu::AttachMenu | ( | CMenu * | pMenu, | |
| BOOL | bMenuBar = FALSE | |||
| ) | [protected] |
Definition at line 53 of file fsODMenu.cpp.
References AttachMenuItem(), fsODMenuItemData::bBold, fsODMenuItemData::bMenuBar, and TRUE.
Referenced by Attach(), and InsertMenu().
| fsODMenuItemData * fsODMenu::AttachMenuItem | ( | CMenu * | pMenu, | |
| UINT | iPos, | |||
| BOOL | bByPos = TRUE | |||
| ) | [protected] |
Definition at line 72 of file fsODMenu.cpp.
References FALSE, fsnew1, and fsODMenuItemData::strMenuText.
Referenced by AddItem(), AttachMenu(), InsertMenu(), and InsertMenuItem().
| void fsODMenu::DetachMenu | ( | CMenu * | pMenu | ) | [protected] |
Definition at line 114 of file fsODMenu.cpp.
References DetachMenuItem(), and NULL.
Referenced by Detach(), and RemoveMenu().
| void fsODMenu::DetachMenuItem | ( | CMenu * | pMenu, | |
| UINT | iPos, | |||
| BOOL | bByPos = TRUE | |||
| ) | [protected] |
Definition at line 133 of file fsODMenu.cpp.
References simple_client::info.
Referenced by DetachMenu(), RemoveMenu(), and RemoveMenuItem().
| void fsODMenu::DrawCheckMark | ( | CDC * | dc, | |
| RECT & | rc, | |||
| BOOL | bSelected, | |||
| BOOL | bGrayed | |||
| ) | [protected] |
| HMENU fsODMenu::CopyMenu | ( | HMENU | hMenu | ) | [protected] |
CImageList* fsODMenu::m_pImages [protected] |
Definition at line 84 of file fsODMenu.h.
Referenced by fsODMenu(), OnDrawItem(), and SetImageList().
CImageList * fsODMenu::m_pDisImages [protected] |
CFont fsODMenu::m_font [protected] |
Definition at line 85 of file fsODMenu.h.
Referenced by fsODMenu(), OnDrawItem(), and OnMeasureItem().
UINT fsODMenu::m_cyIcon [protected] |
Definition at line 86 of file fsODMenu.h.
Referenced by fsODMenu(), OnDrawItem(), and OnMeasureItem().
UINT fsODMenu::m_cxIcon [protected] |
Definition at line 87 of file fsODMenu.h.
Referenced by fsODMenu(), OnDrawItem(), and OnMeasureItem().
CFont fsODMenu::m_fontBold [protected] |
Definition at line 88 of file fsODMenu.h.
Referenced by fsODMenu(), OnDrawItem(), and OnMeasureItem().
HMENU fsODMenu::m_hMenu [protected] |
Definition at line 89 of file fsODMenu.h.
Referenced by Attach(), Detach(), fsODMenu(), InsertMenu(), RemoveMenu(), and SetImages().
1.5.6