I can create a Pushbutton with FileSaveDialog1.Dialog.QueryInterface as shown below. How do you setup and handle the OnPushButton click event so I can respond to the button click?
procedure TForm1.FileSaveDialog1Execute(Sender: TObject);
const
dwVisualGroup1ID: DWORD = 1900;
var
c: IFileDialogCustomize;
d: IFileDialogControlEvents;
begin
if FileSaveDialog1.Dialog.QueryInterface(IFileDialogCustomize, c) = S_OK then
begin
// Add a Advanced Button
c.AddPushButton(dwVisualGroup1ID, 'Advanced');
c.MakeProminent(dwVisualGroup1ID);
// Setup the PushButton Click event?
end;
The following works fine for me in XE2:
.