Article ID: 138032 - Last Review: November 21, 2006 - Revision: 2.2 FIX: CIRC2 and CIRC3 Samples Don't Handle WM_SIZE MessageThis article was previously published under Q138032 On This PageSYMPTOMS
Trying to decrease the size of the Circle control after changing the
CircleOffset property may cause the circle to get drawn outside the
control's rectangle.
Handle the WM_SIZE message and reset the offset. This should only take
place if the CircleShape property is set to TRUE and if the circle's
position is outside the control's new size.
Sample Code to Implement WorkaroundCAUSE
The circle control does not respond to the WM_SIZE message and therefore
does not adjust its CircleOffset property to compensate for the change in
control size.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem was corrected in the version
of the Microsoft Foundation Classes (MFC) that ships with Visual C++, 32-
bit Edition, version 4.0.
MORE INFORMATIONSteps to Reproduce Problem
APPLIES TO
| Article Translations
|

Back to the top
