HexEdit/HexEditView.cpp
int CHexEditView::pos2row(CPointAp pos)
{
	ASSERT(display_.vert_display);
	ASSERT((pos.y%line_height_)/text_height_ < 3);
	return int((pos.y%line_height_)/text_height_);
}
// Given a point in doc coords returns which of the 3 rows of the line the point is in
// Note that in vert_display mode row 0 = char, row 1 = top nybble, row 2 = bottom nybble

Given a point in doc coords returns which of the 3 rows of the line the point is in
Note that in vert_display mode row 0 = char, row 1 = top nybble, row 2 = bottom nybble
Given a point in doc coords returns which of the 3 rows of the line the point is in Note that in vert_display mode row 0 = char row 1 = top nybble row 2 = bottom nybble
int CHexEditView::pos2row(CPointAp pos)
{
	ASSERT(display_.vert_display);
	ASSERT((pos.y%line_height_)/text_height_ < 3);
	return int((pos.y%line_height_)/text_height_);
}
int CHexEditView :: pos2row ( CPointAp pos ) { ASSERT ( display_ . vert_display ) ; ASSERT ( ( pos . y % line_height_ ) / text_height_ < 3 ) ; return int ( ( pos . y % line_height_ ) / text_height_ ) ; }
Given a point in doc coords returns which of the 3 rows of the line the point is in
Note that in vert_display mode row 0 = char, row 1 = top nybble, row 2 = bottom nybble
Given a point in doc coords returns which of the 3 rows of the line the point is in Note that in vert_display mode row 0 = char row 1 = top nybble row 2 = bottom nybble