HexEdit/HexEditView.cpp
void CHexEditView::OnUpdateByteBinary(CCmdUI* pCmdUI)
{
	if (((CMainFrame *)AfxGetMainWnd())->m_wndCalc.ByteSize() > 1)
	{
		pCmdUI->Enable(FALSE);
		return;
	}
	OnUpdateByte(pCmdUI);
}
// These update handlers are similar to the above but for binary operations
// As binary operations use the current value from the calculator we also need
// to ensure that the current operand size in the calculator is not too big.

These update handlers are similar to the above but for binary operations
As binary operations use the current value from the calculator we also need
to ensure that the current operand size in the calculator is not too big.
These update handlers are similar to the above but for binary operations As binary operations use the current value from the calculator we also need to ensure that the current operand size in the calculator is not too big .
void CHexEditView::OnUpdateByteBinary(CCmdUI* pCmdUI)
{
	if (((CMainFrame *)AfxGetMainWnd())->m_wndCalc.ByteSize() > 1)
	{
		pCmdUI->Enable(FALSE);
		return;
	}
	OnUpdateByte(pCmdUI);
}
void CHexEditView :: OnUpdateByteBinary ( CCmdUI * pCmdUI ) { if ( ( ( CMainFrame * ) AfxGetMainWnd ( ) ) -> m_wndCalc . ByteSize ( ) > 1 ) { pCmdUI -> Enable ( FALSE ) ; return ; } OnUpdateByte ( pCmdUI ) ; }
These update handlers are similar to the above but for binary operations
As binary operations use the current value from the calculator we also need
to ensure that the current operand size in the calculator is not too big.
These update handlers are similar to the above but for binary operations As binary operations use the current value from the calculator we also need to ensure that the current operand size in the calculator is not too big .