Are you sure ???? as bRedrawActiveArea is not defined, initialized nor modified...should this actually be m_bRedrawActiveArea ??


else if (bRedrawActiveArea)
{
...