Example #1
0
/*----------------------------------------------------------------------------------------------
	Calculate the upper left hand corner of the cell specified by row, col. This method does not
	restrict the value of row and column to allow for finding the point of a cell adjacent to
	a valid cell, (ie. finding the row + 1 and col + 1 point would be 1 greater then the lower
	right corner of the row, col cell which is the cells bounding rectangle.
----------------------------------------------------------------------------------------------*/
void IconComboPopup::GetPtFromRowCol(Point & pt, int row, int col)
{
    pt.Set(0,0);
    pt.Offset(m_dzsBorder, m_dzsBorder);
    if (row)
        pt.y += ((row) * m_dysButton);

    pt.x += col * m_dxsButton;
}