How to Add Files to the Start|Documents Menu

Posted December 15th @ 6:49 pm by m3Rlin

Windows keeps track of the files you work with ands them to the Start|Documents menu. If you want to add documents to this menu from your program, just use the SHAddToRecentDocs() function. The function requires a PChar parameter but so you can use aways either typecast strings to PChars or use the StrPCopy() function.

uses ShlObj;

[...]

Delphi Component Messages

Posted December 15th @ 1:56 pm by m3Rlin

Delphi sends messages for notification of events that are only applicable to Delphi components. They are like Windows messages in use. If you have a component that publishes the Font property the component probably needs to be repainted if any subproperties in the Font are changed. Changing the Font property does not necessarily generate a [...]