Problem: 1642582

Title: (TWindow -Zoom) "GetWindowUserState" should be "SetWindowUserState"

Received: Mar 26 1997 4:01PM


TWindow::Zoom is calling GetWindowUserState when it probably should be calling SetWindowUserState. This is not a problem for most developers because they are not overriding GetUserStateFrame. (The default GetUserStateFrame calls GetWindowUserState so it doesn't matter that Zoom is not calling SetWindowUserState because the user state is not being changed unless you override GetUserStateFrame.)

I have not tried to override GetUserStateFrame (yet). This is based on visual inspection of the code. The code as it stands now really doesn't make sense because newFrame is being set just before the call to GetWindowUserState which proceeds to wipe out the value just put into newFrame and then after the call to GetWindowUserState newFrame is not used at all!


Fix:

Changed TWindow.Zoom as recommended.