Главная страница | назад





Article #17107: Clearing the recent Documents from the Start Menu

 Question and Answer Database

FAQ2107D.txt   Clearing the recent Documents from the Start Menu
Category   :Windows API
Platform    :All
Product    :All 32 bit  

Question:
How can I clear the list of recent documents in the Windows 
Start menu?

Answer:
Call the Windows API function SHAddToRecentDocs() passing nil
as the filename parameter.

Example:

uses
  ShlOBJ;

procedure TForm1.Button1Click(Sender: TObject);
begin
  SHAddToRecentDocs(SHARD_PATH, nil);
end;


7/16/98 4:31:28 PM
 

Last Modified: 01-SEP-99