Click to See Complete Forum and Search --> : OnSize not called


eloberg
April 20th, 1999, 07:32 AM
In my Doc_View application I have two view classes. In the extra view class that I created I place some text information. When I try to maximize or resize that window
it is not refreshed. My plan was for this view to call OnSize which then would take care of the repainting, but OnSize is never called when I click the maximize button
in the frame of that window. How shall I be able to call OnSize?

Rob Wainwright
April 21st, 1999, 04:18 PM
Assuming the OnSize function is correctly set up to handle the WM_SIZE windows message, the only reason why the WM_SIZE message is not getting to the window is that some other window is taking the message. This is likely to be the frame window, which isn't passing the message on.

There is a tool that can be used to see windows messages as they are being detected by your application. The tool is Spy++ and is part of the dev studio tools.

sally
April 21st, 1999, 09:15 PM
from the frame you might want to resend it to your view

sally

Sally
April 21st, 1999, 09:15 PM
from the frame you might want to resend it to your view

sally