I have WinXP and I am unable to find that option anywhere.
uses windows;.... TForm1 = class(TForm)... private OldHook:LPOFNHOOKPROC;... end; function OpenFileDialogCallBack(Wnd: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM): UINT_PTR; stdcall;begin Result := 0; if uMsg = WM_INITDIALOG then begin SetWindowPos(GetParent(Wnd), HWND_TOP, NewLeft, NewTop, 0, 0, SWP_NOSIZE); LPOPENFILENAME(Form1.OpenDialog1.Handle)^.lpfnHook:=Form1.OldHook; end else result:=Form1.OldHook(Wnd,uMsg,wParam,lParam);end;procedure TForm1.OpenDialog1Show(Sender: TObject);begin OldHook:=LPOPENFILENAME(OpenDialog1.Handle)^.lpfnHook; LPOPENFILENAME(OpenDialog1.Handle)^.lpfnHook:=@OpenFileDialogCallBack;end;
The point is, he should not need to do that.