if (nFlags == MK_RBUTTON )
{
CPoint pointShift = point - m_pointRightStart; // this is the shift value
if(pointShift.x)
{
center += 100; //how much should i set?
wind += 100; //and how should i do?
}
if(pointShift.y)
{
center -= 100;
wind -= 100;
}
m_pointRightStart = point;
OnPaint(); //updateview
}