📄 serieslist.cpp
字号:
// SeriesList.cpp : implementation file//#include "stdafx.h"#include "CommonList.h"#include "resource.h"#include "SeriesList.h"#include "fusionglobal.h"#include "FMWndLoad.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// RxLoadSeriesListRxLoadSeriesList::RxLoadSeriesList(){}RxLoadSeriesList::~RxLoadSeriesList(){}BEGIN_MESSAGE_MAP(RxLoadSeriesList, RxCommonList) //{{AFX_MSG_MAP(RxLoadSeriesList) ON_WM_KEYUP() ON_WM_RBUTTONDOWN() ON_COMMAND(IDM_STUDY_SET_FLOAT, OnStudySetFloat) ON_COMMAND(IDM_STUDY_SET_REFERENCE, OnStudySetReference) //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// RxLoadSeriesList message handlersvoid RxLoadSeriesList::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) { CWnd* pParent = GetParent(); pParent->SendMessage(UM_KEY_SELCHANGE_SERIES, (WPARAM)nChar); RxCommonList::OnKeyUp(nChar, nRepCnt, nFlags);}void RxLoadSeriesList::OnRButtonDown(UINT nFlags, CPoint point) { RxCommonList::OnRButtonDown(nFlags, point); // 急琶等 item捞 钧蹲茄 版快 return int nSel = HitTest(point); if (nSel < 0) return; int iSelected = GetSelectedCount(); // CMenu menu;// menu.LoadMenu(IDMN_SET_STATE);// if (iSelected == 2)// menu.LoadMenu(IDMN_SERIES_LIST_SUB);// else// menu.LoadMenu(IDMN_SERIES_LIST);// CMenu * pmenu = menu.GetSubMenu(0);// ClientToScreen(&point);// pmenu->TrackPopupMenu(TPM_LEFTALIGN|TPM_RIGHTBUTTON, point.x, point.y, this);}void RxLoadSeriesList::OnDeleteSeries() { CWnd* pWnd = GetParent(); CString strMessage;// strMessage.LoadString(IDS_LOADVIEW_DELETE_ITEM);// int res=AfxMessageBox(strMessage , MB_OKCANCEL);// if (res==IDOK)// pWnd->SendMessage(UM_DELETE_SERIES);}void RxLoadSeriesList::OnCopySeries() { CWnd* pWnd = GetParent(); pWnd->SendMessage(UM_COPY_SERIES);}void RxLoadSeriesList::OnSubtractSeries() { CWnd* pWnd = GetParent(); pWnd->SendMessage(UM_SUBTRACT_SERIES);}void RxLoadSeriesList::OnStudySetFloat() { RxGetFrameMain()->m_pFMWndLoad->SetFloat();}void RxLoadSeriesList::OnStudySetReference() { RxGetFrameMain()->m_pFMWndLoad->SetReference();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -