title: Delphi 7 and Vista/Windows 7 common dialogs - events do not work
body: <p>I'm trying to modify the Delphi 7 Dialogs.pas to access the newer Windows 7 Open/Save dialog boxes (see Creating Windows Vista Ready Applications with Delphi).  I can display the dialogs using the suggested modifications; however, events such as OnFolderChange and OnCanClose no longer function.  </p>
  
  <p>This appears to be related to changing the Flags:= OFN_ENABLEHOOK to Flags:=0.  When Flags is set to 0 the TOpenDialog.Wndproc is bypassed and the appropriate CDN_xxxxxxx messages are not trapped.</p>
  
  <p>Can anyone suggest further code modifications to the D7 Dialogs.pas that will both display the newer common dialogs and maintain the event features of the original controls? </p>
  
  <p>Thanks... </p>