Unit FnpFormEnh

Author: Fredrik Nordbakke - FNProgramvare © 1997 E-mail: fredrik.nordbakke@ostfoldnett.no WWW: http://www.prodat.no/fnp/delphi.html Special thanks to T. van Noppen.

Classes

TFnpFormEnh -

Functions

Register - We cannot read the Left/Top/Width/Height properites of the form when WindowState = wsMinimized or wsMaximized.

Types

TRootKey

Constants

Variables


Functions


procedure Register;

We cannot read the Left/Top/Width/Height properites of the form when WindowState = wsMinimized or wsMaximized. We need the values returned by GetWindowPlacement to make it possible to restore the form's pos/size back to normal next time the form is shown. It is not possible to use GetWindowPlacement in TFnpFormEnh.Destory because the form's window handle is then already destroyed.

Types


TRootKey = (rkCurrentUser, rkLocalMachine);

Constants


Variables