HexEdit/HexEditView.cpp
void CHexEditView::OnUpdateClipboard(CCmdUI* pCmdUI)
{
	// Is there any text selected?
	CPointAp start, end;
	GetSel(start, end);
	if (pCmdUI->m_pSubMenu != NULL)
	{
		// This happens when popup menu itself is drawn
		pCmdUI->m_pMenu->EnableMenuItem(pCmdUI->m_nIndex,
			MF_BYPOSITION | (start != end ? MF_ENABLED : (MF_DISABLED | MF_GRAYED)));
	}
	else
		pCmdUI->Enable(start != end);
}
// Update handler that turns on certain user interface options (Copy etc) if there
// is a selection -- ie. there is something available to be placed on the clipboard

Update handler that turns on certain user interface options (Copy etc) if there
is a selection -- ie. there is something available to be placed on the clipboard
Update handler that turns on certain user interface options ( Copy etc ) if there is a selection -- ie . there is something available to be placed on the clipboard
void CHexEditView::OnUpdateClipboard(CCmdUI* pCmdUI)
{
	CPointAp start, end;
	GetSel(start, end);
	if (pCmdUI->m_pSubMenu != NULL)
	{
		pCmdUI->m_pMenu->EnableMenuItem(pCmdUI->m_nIndex,
			MF_BYPOSITION | (start != end ? MF_ENABLED : (MF_DISABLED | MF_GRAYED)));
	}
	else
		pCmdUI->Enable(start != end);
}
void CHexEditView :: OnUpdateClipboard ( CCmdUI * pCmdUI ) { CPointAp start , end ; GetSel ( start , end ) ; if ( pCmdUI -> m_pSubMenu != NULL ) { pCmdUI -> m_pMenu -> EnableMenuItem ( pCmdUI -> m_nIndex , MF_BYPOSITION | ( start != end ? MF_ENABLED : ( MF_DISABLED | MF_GRAYED ) ) ) ; } else pCmdUI -> Enable ( start != end ) ; }
Update handler that turns on certain user interface options (Copy etc) if there
is a selection -- ie.
Update handler that turns on certain user interface options ( Copy etc ) if there is a selection -- ie .
// Is there any text selected?
 // This happens when popup menu itself is drawn
