ON_WM_CONTEXTMENU()
ON_WM_CTLCOLOR_REFLECT()
ON_WM_NCPAINT()
+ ON_COMMAND(ID_EDIT_COPY, OnEditCopy)
END_MESSAGE_MAP()
dc.FillSolidRect(CRect(rect.left + margin, rect.bottom - margin, rect.right, rect.bottom), m_crBackGnd);
}
+void CFilepathEdit::OnEditCopy()
+{
+ Copy();
+}
+
+BOOL CFilepathEdit::PreTranslateMessage(MSG *pMsg)
+{
+ if (pMsg->message >= WM_KEYFIRST && pMsg->message <= WM_KEYLAST)
+ {
+ if (::TranslateAccelerator (m_hWnd, static_cast<CFrameWnd *>(AfxGetMainWnd())->GetDefaultAccelerator(), pMsg))
+ return TRUE;
+ }
+ return CEdit::PreTranslateMessage(pMsg);
+}
+
/**
* @brief Set the control to look active/inactive.
* This function sets control to look like an active control. We don't
void SetTextColor(COLORREF rgb);
protected:
+ virtual BOOL PreTranslateMessage(MSG *pMsg);
afx_msg void OnContextMenu(CWnd*, CPoint point);
afx_msg void OnNcPaint();
+ afx_msg void OnEditCopy();
HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
DECLARE_MESSAGE_MAP();