void OnSize(int x, int y)
Sent to the window when the window has been resized. You may wish to use this for frames to resize their child windows as appropriate. Derive your own class to handle this message. Note that the size passed is of the whole window: call GetClientSize for the area which may be used by the application. A window is sent both an OnPaint and an OnSize message when a resize occurs.