Window maximize behaviour

Does anyone know what is the difference between maximizing a window (in WinXP) by clicking the Maximize/Restore icon in the top right corner of the window and maximizing the window by double clicking on the caption bar?

The problem is that in my application the OpenGL view translation/scaling gets messed up, if the window is maximized by double clicking on the caption bar. This does not happen, if the icon is used to maximize the window. Does this have anything to do with the window events generated by the two different methods of maximizing the window? I’m using JOGL reshape method to observe the changes in the view as usual.

Edit #1: By messing up the translation/scaling I mean a noticable offset or jump in the view. E.g. I have a camera pointing to an object in the world. The object is in the center of the window before it is maximized. After the window is maximized by using the caption bar, the object is no longer in the center of the view – it has moved to some direction (distance from view venter ~ view size).