Ads 468x60px

Smaller time frame always follow the bigger time frame. It's better wait be patience to enter in position than risk with BIG SL. Having strong trading discipline and taking losses when necessary is a sign of serious trading approach
Subscribe:

Labels

Saturday, August 11, 2012

ADD DOCUMENTS TO "START | DOCUMENTS" MENU


By default, Windows will keep track of the documents that you work with and most of the time add them to your "Start | Documents" menu. If you want to add documents to this list from your program (without any user interaction), here's a simple function that can do just that: 
uses ShellAPI, ShlOBJ;

procedure AddToStartDocumentsMenu( 
  sFilePath : string );
begin
  SHAddToRecentDocs( 
    SHARD_PATH, 
    PChar( sFilePath ) );
end;
Now, you can just call AddToStartDocumentsMenu() with the document you want to add. For example:
AddToStartDocumentsMenu( 'c:\windows\MyWork.txt' );

comments