📄 fmwnd3doutline.cpp
字号:
// FMWnd3DOutline.cpp : implementation file//#include "stdafx.h"#include "fusion.h"#include "FMWnd3DOutline.h"#include "MainFrm.h"#include "Buttons.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// RxFMWnd3DOutlineRxFMWnd3DOutline::RxFMWnd3DOutline(UINT nSeries) : RxFMWnd(nSeries){ m_pBtnOrientA = NULL; // Anterior m_pBtnOrientP = NULL; // Posterior m_pBtnOrientL = NULL; // Left m_pBtnOrientR = NULL; // Right m_pBtnOrientH = NULL; // Head m_pBtnOrientF = NULL; // Foot}RxFMWnd3DOutline::~RxFMWnd3DOutline(){}BEGIN_MESSAGE_MAP(RxFMWnd3DOutline, RxFMWnd) //{{AFX_MSG_MAP(RxFMWnd3DOutline) ON_WM_CREATE() ON_WM_DESTROY() ON_WM_SIZE() //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// RxFMWnd3DOutline message handlersint RxFMWnd3DOutline::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (RxFMWnd::OnCreate(lpCreateStruct) == -1) return -1; if(m_nSeries == RXSERIES_COM) { AddButton(IDFM_VR_BTN_MIXING, IDB_FMWND_BTN_MIXING, RXCBS_VISIBLE|RXCBS_CHECKBOX|RXCBS_NORMAL); AddButton(IDFM_LOCAL_SPERATOR1, 0, RXCBS_VISIBLE|RXCBS_SEPARATOR); } AddButton(IDFM_LOCAL_BTN_MIN, IDB_FMWND_BTN_MIN, RXCBS_VISIBLE|RXCBS_NORMAL); AddButton(IDFM_LOCAL_BTN_MAX, IDB_FMWND_BTN_MAX, RXCBS_NORMAL); UINT nStyle = WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON; m_pBtnOrientA = new RxBitmapButton; m_pBtnOrientA->Create(NULL, nStyle, CRect(0,0,0,0), this, IDFM_VR_ORIENT_A); m_pBtnOrientP = new RxBitmapButton; m_pBtnOrientP->Create(NULL, nStyle, CRect(0,0,0,0), this, IDFM_VR_ORIENT_P); m_pBtnOrientL = new RxBitmapButton; m_pBtnOrientL->Create(NULL, nStyle, CRect(0,0,0,0), this, IDFM_VR_ORIENT_L); m_pBtnOrientR = new RxBitmapButton; m_pBtnOrientR->Create(NULL, nStyle, CRect(0,0,0,0), this, IDFM_VR_ORIENT_R); m_pBtnOrientH = new RxBitmapButton; m_pBtnOrientH->Create(NULL, nStyle, CRect(0,0,0,0), this, IDFM_VR_ORIENT_H); m_pBtnOrientF = new RxBitmapButton; m_pBtnOrientF->Create(NULL, nStyle, CRect(0,0,0,0), this, IDFM_VR_ORIENT_F); m_pBtnOrientA->LoadBitmaps(IDB_FMWND_BTN_ORIENT_A, CSize(16,16), BM_NORMAL | BM_SELECT); m_pBtnOrientP->LoadBitmaps(IDB_FMWND_BTN_ORIENT_P, CSize(16,16), BM_NORMAL | BM_SELECT); m_pBtnOrientL->LoadBitmaps(IDB_FMWND_BTN_ORIENT_L, CSize(16,16), BM_NORMAL | BM_SELECT); m_pBtnOrientR->LoadBitmaps(IDB_FMWND_BTN_ORIENT_R, CSize(16,16), BM_NORMAL | BM_SELECT); m_pBtnOrientH->LoadBitmaps(IDB_FMWND_BTN_ORIENT_H, CSize(16,16), BM_NORMAL | BM_SELECT); m_pBtnOrientF->LoadBitmaps(IDB_FMWND_BTN_ORIENT_F, CSize(16,16), BM_NORMAL | BM_SELECT); return 0;}void RxFMWnd3DOutline::OnDestroy() { RxFMWnd::OnDestroy(); if(m_pBtnOrientA) delete m_pBtnOrientA; if(m_pBtnOrientP) delete m_pBtnOrientP; if(m_pBtnOrientL) delete m_pBtnOrientL; if(m_pBtnOrientR) delete m_pBtnOrientR; if(m_pBtnOrientH) delete m_pBtnOrientH; if(m_pBtnOrientF) delete m_pBtnOrientF;}void RxFMWnd3DOutline::OnActivateWnd(BOOL bActivate, CWnd *pCurWnd, CWnd *pOldWnd){ RxFMWnd::OnActivateWnd(bActivate, pCurWnd, pOldWnd); // TODO :}void RxFMWnd3DOutline::OnSize(UINT nType, int cx, int cy) { RxFMWnd::OnSize(nType, cx, cy); CRect rect; rect.left = (cx-106) / 2; rect.top = cy-18; rect.right = rect.left + 16; rect.bottom = rect.top + 16; m_pBtnOrientA->MoveWindow(rect); rect.OffsetRect(18, 0); m_pBtnOrientP->MoveWindow(rect); rect.OffsetRect(18, 0); m_pBtnOrientL->MoveWindow(rect); rect.OffsetRect(18, 0); m_pBtnOrientR->MoveWindow(rect); rect.OffsetRect(18, 0); m_pBtnOrientH->MoveWindow(rect); rect.OffsetRect(18, 0); m_pBtnOrientF->MoveWindow(rect);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -