HexEdit/HexEditView.cpp
void CHexEditView::OnCopyHex()
{
	// Get the addresses of the selection
	FILE_ADDRESS start, end;
	GetSelAddr(start, end);
	ASSERT(start >= 0 && start <= end && end <= GetDocument()->length());

	// Clipboard setup and error checking
	if (!copy2cb_init(start, end))
		return;

	CWaitCursor wait;                           // Turn on wait cursor (hourglass)

	bool ok = copy2cb_hextext(start, end);

	if (::CloseClipboard() && ok)
	{
		theApp.ClipBoardAdd((end - start)*3);
		theApp.SaveToMacro(km_copy_hex);
	}
	else
		theApp.mac_error_ = 20;
}
// Copy to clipboard as hex text

Copy to clipboard as hex text
Copy to clipboard as hex text
void CHexEditView::OnCopyHex()
{
	FILE_ADDRESS start, end;
	GetSelAddr(start, end);
	ASSERT(start >= 0 && start <= end && end <= GetDocument()->length());
	if (!copy2cb_init(start, end))
		return;
	CWaitCursor wait;                           
	bool ok = copy2cb_hextext(start, end);
	if (::CloseClipboard() && ok)
	{
		theApp.ClipBoardAdd((end - start)*3);
		theApp.SaveToMacro(km_copy_hex);
	}
	else
		theApp.mac_error_ = 20;
}
void CHexEditView :: OnCopyHex ( ) { FILE_ADDRESS start , end ; GetSelAddr ( start , end ) ; ASSERT ( start >= 0 && start <= end && end <= GetDocument ( ) -> length ( ) ) ; if ( ! copy2cb_init ( start , end ) ) return ; CWaitCursor wait ; bool ok = copy2cb_hextext ( start , end ) ; if ( :: CloseClipboard ( ) && ok ) { theApp . ClipBoardAdd ( ( end - start ) * 3 ) ; theApp . SaveToMacro ( km_copy_hex ) ; } else theApp . mac_error_ = 20 ; }
Copy to clipboard as hex text
Copy to clipboard as hex text
// Get the addresses of the selection
 // Clipboard setup and error checking
 // Turn on wait cursor (hourglass)
