AutoSize Example for C++ 4.0 and later

This example shows how the AutoSize property works when loading and when rotating an image.

m_Lead1.SetAutoSize(TRUE);
m_Lead1.Load("c:\\lead\\images\\image1.cmp", 0, 0, 1);
MessageBox ("Control is sized to fit the loaded bitmap", "Notice", MB_OK);
m_Lead1.Rotate(4500, ROTATE_RESIZE, RGB(0,0,0));
MessageBox ("Control is sized to fit the rotated bitmap", "Notice", MB_OK);