// BriefEdit.cpp : implementation file // #include "stdafx.h" #include "mw4gameed.h" #include "BriefEdit.h" ///////////////////////////////////////////////////////////////////////////// // CBriefEdit CBriefEdit::CBriefEdit() { } CBriefEdit::~CBriefEdit() { } BEGIN_MESSAGE_MAP(CBriefEdit, CEdit) //{{AFX_MSG_MAP(CBriefEdit) ON_WM_CONTEXTMENU() ON_WM_CTLCOLOR() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CBriefEdit message handlers void CBriefEdit::OnContextMenu(CWnd* pWnd, CPoint point) { CMenu menu; VERIFY(menu.LoadMenu(IDR_OBJECTPOPUP)); CMenu* pPopup = menu.GetSubMenu(1); ASSERT(pPopup != NULL); pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,point.x,point.y,this); } HBRUSH CBriefEdit::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CEdit::OnCtlColor(pDC, pWnd, nCtlColor); // TODO: Change any attributes of the DC here // TODO: Return a different brush if the default is not desired return hbr; }